Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Baum mit Augenâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #288261 |
Just landed here for the first time; agree with the diagnosis that more Qs are needed. (Although I did find an old one I could answer.) Anyway, if there's no questions, the way seems pretty clear: Post some (that are not on SO)! Even if you know the answer, fine, post it, google will like. (I'll try... (more) |
— | over 1 year ago |
Edit | Post #288263 |
Post edited: |
— | over 1 year ago |
Edit | Post #288263 | Initial revision | — | over 1 year ago |
Answer | — |
A: How should one match a specialized version of a variant? This can be achieved using SFINAE, making the default overload invalid for non-numeric types: ``` template constexpr bool invariant(const std::variant &) { const std::array hit{std::issamev...}; return std::anyof(std::begin(hit), std::end(hit), [](auto v) { return v;... (more) |
— | over 1 year ago |