boostorg / boostorg/parser

Is there a reason boost::parser::none::fail() is a runtime error, not a compile time error?

Open
#273 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
182
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Hi,

when I mess up my parsers, sometimes I run into none::fail. This is a runtime error. Why not a compile time error with static_assert(false) or static_assert(!std::is_same_v) to force late evaluation?

Is there a reason I am missing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.