Re: string_view and c.insert(c.end(), std::move(val)) compile error

Mike Gresens <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Hello Olaf,

in my opinion it is no bug.
In my opinion it is a bad idea to try to parse into a string_view.

The string_view does not hold the parsed data (the string).
It is just a "pointer" to a constant string (+ size info).

So what the string_view points to if you parse a file? To a position in that
file??!

In X3 any container you can parse into must hold the parsed data by itself
(string, vector, set, map, etc.)
X3 uses container.insert() to append parsed data to the container.
So you see "basic_string_view<char>« has no member named »insert«" as error.

Best regards,
Mike...




--
View this message in context: http://boost.2283326.n4.nabble.com/string-view-and-c-insert-c-end-std-move-val-compile-error-tp4693747p4693817.html
Sent from the spirit-general mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.