When to use strfwd.h
Pavel Sanda
sanda at lyx.org
Tue Oct 1 10:23:27 UTC 2024
On Tue, Oct 01, 2024 at 11:12:00AM +0200, Jean-Marc Lasgouttes wrote:
> Basically, for gcc >=5 and libc++, we include <string>. Unless there is
> something I do not understand, the header is not really useful IMO.
Are you sure about this? I checked before sending my email and while
empty file with #include <string> produces 22k preprocesed lines,
#include "strfwd.h" on my debian stable produce ~400 lines
of preprocessed code including homebrewed
template<typename Char, typename Traits, typename Alloc> class basic_string;
typedef basic_string<char, char_traits<char>, allocator<char> > string;
Pavel
More information about the lyx-devel
mailing list