Skip to content

Commit

Permalink
Merge pull request #1 from mlang/master
Browse files Browse the repository at this point in the history
My two small patches as a pull request
  • Loading branch information
djowel committed Mar 7, 2013
2 parents b151c65 + af423ed commit a05eb58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions boost/spirit/home/x3/string/symbols.hpp
Expand Up @@ -307,6 +307,18 @@ namespace boost { namespace spirit { namespace x3
shared_ptr<Lookup> lookup;
std::string name_;
};

template <typename Char, typename T, typename Lookup, typename Filter>
struct get_info<symbols<Char, T, Lookup, Filter>>
{
typedef std::string result_type;
result_type operator()(symbols< Char, T
, Lookup, Filter
> const& symbols) const
{
return symbols.name();
}
};
}}}

#if defined(BOOST_MSVC)
Expand Down
3 changes: 1 addition & 2 deletions libs/spirit/workbench/context.cpp
Expand Up @@ -4,10 +4,9 @@
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 <boost/spirit/home/x3.hpp>
#include <boost/spirit/home/support/context.hpp>
#include <iostream>

using boost::spirit::context;
using boost::spirit::make_context;
using boost::spirit::get;

Expand Down

0 comments on commit a05eb58

Please sign in to comment.