diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 5ec0f346..55ec8519 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -791,13 +791,15 @@ private: * access is always const regardless of group access. */ - static inline const value_type& cast_for(group_shared,value_type& x) - {return x;} + static inline const value_type& + cast_for(group_shared,value_type& x){return x;} + static inline typename std::conditional< std::is_same::value, const value_type&, value_type& - >::type cast_for(group_exclusive,value_type& x){return x;} + >::type + cast_for(group_exclusive,value_type& x){return x;} struct erase_on_exit {