ソースを参照

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)
+				}
+			};
 		}
 	};
 }