I'm getting this error: include/boost/spirit/home/phoenix/bind/detail/member_function_ptr.hpp:109:35: No viable conversion from 'boost::spirit::unused_type' to 'const std::__1::basic_string'
#define BOOST_SPIRIT_USE_PHOENIX_V3
#define spirit boost::spirit
#define phoenix boost::phoenix
component_ = lit( '-' ) >> string_[ phoenix::bind( &SemanticActionsType::new_component_name, &actions_, spirit::qi::_1 )]
Here is the SemanticActions class:
template< typename IterType >
class SemanticActions
{
public:
SemanticActions( Design_p d ) : design_( d )
{
}
void print(int const& i) const
{
std::cout << i << std::endl;
}
void new_component_name ( std::string const & s) const
{
cout << "new component name" << endl;
}
Any ideas? I've tried passing in a pair of iterators (begin, end) as well as the constant string with no success.