Преглед изворни кода

Hint return type to compiler

Ole пре 9 година
родитељ
комит
eb07c6dd75
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      lib/luwra/tables.hpp

+ 7 - 1
lib/luwra/tables.hpp

@@ -128,7 +128,13 @@ namespace internal {
 
 		template <typename K> inline
 		TableAccessor<Path<A, K>> operator [](K&& subkey) const && {
-			return {state, {accessor, std::forward<K>(subkey)}};
+			return TableAccessor<Path<A, K>> {
+				state,
+				Path<A, K> {
+					accessor,
+					std::forward<K>(subkey)
+				}
+			};
 		}
 	};
 }