Skip to content
Snippets Groups Projects
Commit ebd08d1c authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed compile error

parent ccf3c9e2
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ struct readonly_property ...@@ -11,7 +11,7 @@ struct readonly_property
using index_t = typename std::decay<CollectionT>::type::index_t; using index_t = typename std::decay<CollectionT>::type::index_t;
using handle_t = typename std::decay<CollectionT>::type::handle_t; using handle_t = typename std::decay<CollectionT>::type::handle_t;
using input_t = decltype(std::declval<CollectionT>().operator[](index_t())); using input_t = decltype(std::declval<CollectionT>()[index_t()]);
using output_t = typename tmp::decayed_result_type_of<FuncT, input_t>; using output_t = typename tmp::decayed_result_type_of<FuncT, input_t>;
output_t operator[](handle_t h) const { return mFunc(mCollection(h)); } output_t operator[](handle_t h) const { return mFunc(mCollection(h)); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment