Skip to content

Commit

Permalink
Merge pull request #314 from Kojoley/repository-no-predifined-termina…
Browse files Browse the repository at this point in the history
…ls-compatability

Fixed problems with BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
  • Loading branch information
Kojoley committed Dec 6, 2017
2 parents 5a72073 + d58e26e commit 9448f43
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 6 deletions.
2 changes: 0 additions & 2 deletions include/boost/spirit/home/karma/auxiliary/attr_cast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ namespace boost { namespace spirit

namespace boost { namespace spirit { namespace karma
{
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using spirit::attr_cast;
#endif

///////////////////////////////////////////////////////////////////////////
// attr_cast_generator consumes the attribute of subject generator without
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ namespace boost { namespace spirit
///////////////////////////////////////////////////////////////////////////////
namespace boost { namespace spirit { namespace repository { namespace karma
{
using repository::confix_type;
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using repository::confix;
#endif
using repository::confix_type;

///////////////////////////////////////////////////////////////////////////
template <typename Subject, typename Prefix, typename Suffix>
Expand Down
4 changes: 3 additions & 1 deletion include/boost/spirit/repository/home/qi/directive/confix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ namespace boost { namespace spirit
///////////////////////////////////////////////////////////////////////////////
namespace boost { namespace spirit { namespace repository { namespace qi
{
using repository::confix_type;
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using repository::confix;
#endif
using repository::confix_type;

///////////////////////////////////////////////////////////////////////////
// the confix() generated parser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ namespace boost { namespace spirit
///////////////////////////////////////////////////////////////////////////////
namespace boost { namespace spirit { namespace repository {namespace qi
{
using repository::distinct_type;
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using repository::distinct;
#endif
using repository::distinct_type;

template <typename Subject, typename Tail, typename Modifier>
struct distinct_parser
Expand Down
7 changes: 7 additions & 0 deletions include/boost/spirit/repository/home/qi/directive/kwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <boost/spirit/home/qi/parser.hpp>
#include <boost/spirit/home/qi/auxiliary/lazy.hpp>
#include <boost/spirit/home/qi/operator/kleene.hpp>
#include <boost/spirit/home/qi/string/lit.hpp>
#include <boost/spirit/home/support/container.hpp>
#include <boost/spirit/home/qi/detail/attributes.hpp>
#include <boost/spirit/home/qi/detail/fail_function.hpp>
Expand Down Expand Up @@ -148,11 +149,17 @@ namespace boost { namespace spirit

namespace boost { namespace spirit { namespace repository { namespace qi
{
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using repository::kwd;
using repository::ikwd;
using repository::dkwd;
using repository::idkwd;
using spirit::inf;
#endif
using repository::kwd_type;
using repository::ikwd_type;
using repository::dkwd_type;
using repository::idkwd_type;
using spirit::inf_type;

template <typename T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <boost/spirit/home/qi/action/action.hpp>
#include <boost/spirit/home/qi/directive/hold.hpp>
#include <boost/mpl/count_if.hpp>
#include <boost/mpl/greater.hpp>
#include <boost/mpl/range_c.hpp>
#include <boost/mpl/copy.hpp>
#include <boost/mpl/size.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#if !defined(BOOST_SPIRIT_REPOSITORY_QI_ADVANCE_JAN_23_2011_1203PM)
#define BOOST_SPIRIT_REPOSITORY_QI_ADVANCE_JAN_23_2011_1203PM

#include <boost/spirit/home/support/terminal.hpp>
#include <boost/spirit/include/qi_parse.hpp>

///////////////////////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ namespace boost { namespace spirit
///////////////////////////////////////////////////////////////////////////////
namespace boost { namespace spirit { namespace repository { namespace qi
{
using repository::flush_multi_pass_type;
#ifndef BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
using repository::flush_multi_pass;
#endif
using repository::flush_multi_pass_type;

///////////////////////////////////////////////////////////////////////////
// for a flush_multi_pass_parser generated parser
Expand Down

0 comments on commit 9448f43

Please sign in to comment.