News for hackers. Stuff that matters.
Re:“I'm basically giving myself a permanent vacation from be... by thestoicattack on Thursday July 12, 2018 @04:17PM (#17518252)
C++17 has if-statement initializers, so you can do

    if (auto x = re_match(foo, bar); x.has_value()) {
(or x.ok() or whatever the name is of the method that tells you the validity of x)

There are no comments on this comment yet.