Fix compilation for Oracle Studio 12.5

The compiler expects a qualified dependent name after `typename`, so move `const` after the name.
This commit is contained in:
Andrey Semashev
2017-01-24 02:31:27 +04:00
committed by GitHub
parent 16824fe0f1
commit 5d06f1074a

View File

@ -373,7 +373,7 @@ namespace boost {
// Specific for boost::array: simply returns its elems data member.
template <typename T, std::size_t N>
typename const detail::c_array<T,N>::type& get_c_array(const boost::array<T,N>& arg)
typename detail::c_array<T,N>::type const& get_c_array(const boost::array<T,N>& arg)
{
return arg.elems;
}