From 5d06f1074a00fa69d31f41c0d62ab9ba8db75975 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 24 Jan 2017 02:31:27 +0400 Subject: [PATCH] Fix compilation for Oracle Studio 12.5 The compiler expects a qualified dependent name after `typename`, so move `const` after the name. --- include/boost/array.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index 3ac0ffc..210c072 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -373,7 +373,7 @@ namespace boost { // Specific for boost::array: simply returns its elems data member. template - typename const detail::c_array::type& get_c_array(const boost::array& arg) + typename detail::c_array::type const& get_c_array(const boost::array& arg) { return arg.elems; }