Просмотр исходного кода

view_pack: get around an issue of VS2017

Michele Caini 5 лет назад
Родитель
Сommit
5072e96277
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/view_pack.hpp

+ 1 - 1
src/entt/entity/view_pack.hpp

@@ -267,7 +267,7 @@ public:
      * @return A copy of the requested view from the pack.
      */
     template<typename Type>
-    [[nodiscard]] operator Type() const ENTT_NOEXCEPT {
+    operator Type() const ENTT_NOEXCEPT {
         return std::get<Type>(pack);
     }