#ifndef BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED #define BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED // // Copyright 2015 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #include #include #include #include #include namespace boost { template struct copy_cv { private: typedef typename boost::conditional::value, typename boost::add_const::type, T>::type CT; public: typedef typename boost::conditional::value, typename boost::add_volatile::type, CT>::type type; }; } // namespace boost #endif // #ifndef BOOST_TYPE_TRAITS_COPY_CV_HPP_INCLUDED