浏览代码

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