Skip to content

Commit

Permalink
Merge pull request boostorg#46 from jefftrull/bugfix/instantiate_stds…
Browse files Browse the repository at this point in the history
…tring

Instantiate lexers with std::string, not flex_string
  • Loading branch information
jefftrull authored Jan 12, 2020
2 parents 32df100 + 27dc286 commit c530f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/list_includes/instantiate_lexertl_lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
///////////////////////////////////////////////////////////////////////////////

template struct boost::wave::cpplexer::lexertl::new_lexer_gen<
BOOST_WAVE_STRINGTYPE::iterator>;
std::string::iterator>;

#endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
4 changes: 2 additions & 2 deletions samples/real_positions/instantiate_re2c_lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
///////////////////////////////////////////////////////////////////////////////

template struct boost::wave::cpplexer::new_lexer_gen<
BOOST_WAVE_STRINGTYPE::iterator, boost::wave::util::file_position_type,
std::string::iterator, boost::wave::util::file_position_type,
lex_token<boost::wave::util::file_position_type> >;
template struct boost::wave::cpplexer::new_lexer_gen<
BOOST_WAVE_STRINGTYPE::const_iterator, boost::wave::util::file_position_type,
std::string::const_iterator, boost::wave::util::file_position_type,
lex_token<boost::wave::util::file_position_type> >;

// the suffix header occurs after all of the code
Expand Down

0 comments on commit c530f72

Please sign in to comment.