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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user