Re: R: Error only on G++ Debian
Kohei Takahashi <[email protected]> Mon, 22 Jan 2018 09:59:43 +0900
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 2018/01/21 17:56, Claudio La Rosa wrote: > > The two lines that cause compile error are: > > > > phrase_parse(line.begin(), line.end(), firstStepRules, ascii::space); > > > > and > > > > qi::phrase_parse(str.begin(), str.end(), assemblyParser, space); > IIUC, phrase_parse requires reference to iterator at first argument, not just a iterator. Standard conformant compilers, except that MSVC, reject passing prvalue to lvalue reference parameter. Try following. ``` auto itr = str.begin(); qi::phrase_parse(itr, str.end(), assemblyParser, space); ``` Kohei ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general
signature.asc
(application/pgp-signature, 854 B)
-----BEGIN PGP SIGNATURE----- iQJDBAEBCAAtFiEEo3Cz2WL17kOFGHY9YbI/E9Gn/OgFAlplN38PHGZsYXN0QGZs YXN0LmpwAAoJEGGyPxPRp/zoAf8P/1pvqVumN2hJYUJyAkTiQ2YVB325PFqnuGTp LwR9N+I3sXHa8AqvIgVrta9v99fXqldW5UkeX9xWumj/uILJU5xPXJVmGZjIf070 rHKnzrAF5+X92SqIE7SzTysOHAZCyY2IiBNV6Pd2KU4s2akPjR9yXKOH2nmyrL7L 4ugaEibVrl7JnsQRj6pqbNGiApe8Xqm9EBB4nH2/0bKm+Lgahc3uhuBVWItQg/T8 pF1bX1EWWM9pZE+JaiHfMWsIPz8ZUf+gBRIHS49H0iKT9Nor4sXuKa5VR5mbf7Ze 8LaUrVNZEzQew3Di6yLO87W5yn6s4Z/lHpSTcqUgTgoHYp3oXm7yovv4UtbPRhPM qDYUVf3FVSxwwbHChksFPgADkKuQddjsPQFlusZogwr6JhS5qfBHZuYTL0uTzWmH is04FL65pIksi1zqeix+ZY0u8YbSFbDj7XKOSZ+ltzJuNjeuJaeHBD6FWaTrJQy0 pXJybd/Rd3f626iJU2cKWlJWU2zfTFLD74mn5OgmhBpaGDFazWPGqIpoTky0EGmT wHvnVKbXRih7z3UbYfN+G7xcSLPV0GGuyRy9rfuMEtiWIIU/eZHGn1MUTCjaOko3 Vkpos30FDZo8+1k8B5N4wtO0Xwjk55S104wSiaj/I/bqTX5O5dQ998m8Xrr/t3YC uTuWjFM9 =kVZ5 -----END PGP SIGNATURE-----