TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25347 21
Logicwise – A Factory for C++ Concepts

Logicwise is intended to validate a bunch of types or values around a simple atomic concept using straightforward syntax.


Say, you have several types, and you want to ensure any of the following:

\- Each type satisfies some constraints.

\- All types must be distinct.

\- No type may inherit from any other type.

\- Each type must match any type from another type list.

You will find an intuitive solution in Logicwise: https://github.com/frog-singing/Logicwise

It even allows you to forge your requirement into a new concept.


Happy to share my design thoughts with you!

https://redd.it/1tukz5q
@r_cpp
GitHub GitHub - frog-singing/Logicwise: Factory for C++ Concepts – mass & structural compile-time verification for cpp20 metaprogramming Factory for C++ Concepts – mass & structural compile-time verification for cpp20 metaprogramming - frog-singing/Logicwise
More from @r_cpp
  1. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  2. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  3. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
  4. Sep 20, 2026A clever branch free optimization I'm the developer of memlz which is an extremely fast co…
  5. Sep 15, 2026Inside Boost.PolyCollection https://bannalia.blogspot.com/2026/09/inside-boostpolycollecti…
  6. Sep 11, 2026C++26: Standard Library Hardening Experiments https://www.cppstories.com/2026/hardening-ex…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →