This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: make std::regex unusable


Can we make the constructor of std::basic_regex throw an exception, to
stop people thinking it's supposed to work and then being surprised or
annoyed that it's not implemented?

For people who want to experiment with it anyway or help implement it
we could suppress the exception if
_GLIBCXX_YES_I_KNOW_REGEX_DOES_NOT_WORK is defined.


Alternatively we could just stick a #warning in <regex>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]