Le 05/01/2023 à 05:10, Richard Kimberly Heck a écrit :
The point of string_view is to avoid a copy here. Even with the use of const &, a copy has to be made of the original constant string, a const char *. Would it be OK to use instead:

+        Attributes(bool o, const char * entity)

?? I think so, but I avoid C-style strings whenever I can, out of paranoia.

I think we can live with the extra copy.

Thanks for the fix.

JMarc

--
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to