1 #ifndef BOOST_METAPARSE_V1_CPP11_IMPL_SIZE_HPP 2 #define BOOST_METAPARSE_V1_CPP11_IMPL_SIZE_HPP 3 4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013. 5 // Distributed under the Boost Software License, Version 1.0. 6 // (See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt) 8 9 #include <boost/metaparse/v1/cpp11/fwd/string.hpp> 10 11 #include <boost/mpl/int.hpp> 12 13 #include <type_traits> 14 15 namespace boost 16 { 17 namespace metaparse 18 { 19 namespace v1 20 { 21 namespace impl 22 { 23 template <class S> 24 struct size; 25 26 template <char... Cs> 27 struct size<string<Cs...>> : boost::mpl::int_<sizeof...(Cs)> {}; 28 } 29 } 30 } 31 } 32 33 #endif 34 35