3 ms·
Did you test the --std change in isolation, without your new headers? Some libraries' headers are ridiculously expensive when they make heavy use of templates.
by majewsky 11y ago
Did you test the --std change in isolation, without your new headers? Some libraries' headers are ridiculously expensive when they make heavy use of templates. My favorite in that regard is Boost::Qi.
- cm3 11y agoHow do I test it in isolation without including and making use it as before (aka no code change in the consumer of the previously C++98 header)?
- jononor 11y agoCheckout the version before you introduced the C++11 header. Alternatively, fix the header to be C++98 compatible (may of course be non-trivial).
- netheril96 11y agoJust compile the previous version that conforms to C++98 with different std flags and do the comparison.
- cm3 11y agoRight, that makes sense. Will do, though once confirmed, I will curse C++1x even more, I guess :).
- cm3 11y agoIs there a difference between -std and --std? I've always used -std=FOO.