Open paulocoutinhox opened 5 years ago
The code incompatible with C++11 in constexpr specs:
Looks like a legit bug, based on the analysis on StackOverflow. Djinni is intended to work with C++11, but it looks like the flags feature isn't fully compatible with that language version.
Note that the flags feature wasn't developed by, and isn't used by folks at Dropbox currently. It was developed by @mknejp and landed after some fixes by @choiip so they might be good contacts to take a look at fixing this.
Unfortunately I don't think there's a solution here for C++11 that doesn't involve removing those operators. This was a huge oversight on my part.
Hi,
Im trying use the flag resource of djinni in both G++ and CLANG++. On clang no problem, but on G++ i got error when use std=c++11 but not when use std=c++14 or std=c++17. This is the source:
This is the error:
https://godbolt.org/z/R9oVpF
On godbolt change STD to 11 or to 14 to see the problem.