cppalliance / safe-cpp

Boost Software License 1.0
191 stars 14 forks source link

Choice bug - substitution of concise-match not implemented #44

Open seanbaxter opened 2 months ago

seanbaxter commented 2 months ago
#feature on safety

template<typename T>
choice C {
  a, b, c;

  bool is_b(const self^) noexcept {
    return match(*self; .b);
  }

};

int main() {
  C<int>::b().is_b();
}