constexpr icon indicating copy to clipboard operation
constexpr copied to clipboard

Experiments with constexpr

Results 9 constexpr issues
Sort by recently updated
recently updated
newest added

I was wondering as to the nature of the syntax appearing many times in your code, with the use of the ternary operator, for example: `return true ? detail::md5::md5(s) :...

```error: ‘struct cx::array::inserter’ redeclared with different access```

Counter does not seem to be counting up. ``` ∴ clang -std=c++1z -I../include cx_counter.cpp cx_counter.cpp:6:3: error: static_assert failed "counter(1)" static_assert(cx::counter() == 1, "counter(1)"); ^ ~~~~~~~~~~~~~~~~~~ cx_counter.cpp:7:3: error: static_assert failed "counter(2)"...

With GCC < 9.0, the bug [67371 - Never executed "throw" in constexpr function fails to compile](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67371) gives errors. It has been solved for GCC >= 9.0 with [86678 -...

Consider the following IEEEish assumption: The widest floating point type can't exactly represent a bigger range of integers than the widest integer type. (that is, if we exceed the limits...

I cannot use the string encryption at all. Throws errors immediately and crashes the compiler with "Internal error during IMAGE:BuildImage" LNK1000 and MSB6006 "link.exe" exited with code 1000 and C1001...

I build with `-fno-rtti -fno-exceptions` so the code fails to build due to various run-time exceptions been thrown in your code. Care to make exception support optional?

Hi, The partial specializations provided for cpp14_promoted in cx_math.h (https://github.com/elbeno/constexpr/blob/master/src/include/cx_math.h#L872) are ambiguous. This can also be seen by testing with some main stream compilers: https://godbolt.org/z/rGfcGzKfh The easiest fix is to...