Why this sentence is valid in C++?
qi::rule<Iterator, std::string(), skipper<Iterator> > name;
Extracted from here:
The definition of rule is (resumed) the following:
template <typename Iterator, typename T1, typename T2,
typename T3, typename T4>
struct rule : boost::proto::extends<bla, bla>, parser<bla, bla>
{
bla, bla
};
Extracted from here:
The rule definition expects a type, however I send it an object. It is possible?
In this context,
std::string()means the type of something that returns anstd::stringand has no parameters. For example,or an instance of