Skip to content
Snippets Groups Projects
Commit 08d11387 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Hide local implementation of as_const when using C++17

parent d2ff12c1
No related branches found
No related tags found
1 merge request!599Fix compilation with C++17
......@@ -101,6 +101,7 @@ namespace Gaudi
}
}
#if __cplusplus < 201703L
// implementation of C++17 std::as_const, see http://en.cppreference.com/w/cpp/utility/as_const
template <typename T>
constexpr typename std::add_const<T>::type& as_const( T& t ) noexcept
......@@ -110,7 +111,9 @@ namespace Gaudi
template <typename T>
void as_const( T&& t ) = delete;
#else
using std::as_const;
#endif
/////////////////////////////////////////
template <typename Out1, typename Out2,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment