2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-20 05:02:28 +00:00

use std::string as a container for char

That is what normally users would pass, so in some situations it
can avoid copying data.
This commit is contained in:
Maxim Ivanov
2014-03-19 19:20:10 +00:00
parent b91d84f95d
commit 84c0c07546

View File

@@ -18,6 +18,7 @@
#include <boost/mpl/has_xxx.hpp>
#include <boost/mpl/bool.hpp>
#include <vector>
#include <string>
namespace boost { namespace spirit { namespace x3 { namespace traits
{
@@ -305,6 +306,10 @@ namespace boost { namespace spirit { namespace x3 { namespace traits
template <>
struct build_container<unused_type> : mpl::identity<unused_type> {};
template <>
struct build_container<char> : mpl::identity<std::string> {};
}}}}
#endif