Re: Using SCLs to build a C++ library for EL 7?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 29, 2019 at 05:11:53PM +0200, Dan Čermák wrote:
> John Reiser <jreiser@xxxxxxxxxxxx> writes:
[..]
> > What is the nature of the incompatibilities, and what are specific
> > examples?
> 
> We switched to from the POSIX regex library to <regex> as it should be
> provided by a C++11 compatible compiler. Unfortunately gcc 4.8.5 does
> not properly implement <regex> and it made a lot of tests fail. We have
> therefore switched to using the SCL gcc & clang compiler for now.

Yes, at least GCC 4.8/4.9 (with the then current libstdc++)
featured a severely broken <regex> (e.g. also on Fedora 19).

If it's just <regex> an alternative is to fallback to Boost regex
- e.g. like this:

#ifdef SOME_MACRO_THAT_SIGNALS_PROPER_REGEX_AVAILABILITY
    #include <regex>
    namespace re = std;
#else
    #include <boost/regex.hpp>
    namespace re = boost;
#endif

And then use re::regex re::regex_match etc. in your code.

Best regards
Georg
-- 
'Embrace change' (Barack Ob^W^WKent Beck)
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux