You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay. The code breaks with `-fmodules-ts`, but that could be a bug in the
standard or WIP implementation too.
Aaron Michaux
PhD ECE, Purdue University
(765)-444-9413
Can't these be turned into inline constexpr variables with BOOST_INLINE_CONSTEXPR.
They could in C++17. But this has to work in C++11. I could special-case it for C++17, but there have to be sufficient motivation. Can someone point me to the place (in the IS perhaps) that tells if/why the current implementation is incompatible with modules?
They could in C++17. But this has to work in C++11
I think BOOST_INLINE_CONSTEXPR expands to 'inline constexpr' when available and otherwise to 'const'. It may miss the 'static const' case though. Perhaps there is a Boost guideline.
Activity
aaron-michaux commentedon Nov 21, 2018
I'm not sure how this code could be correct in a header-only library without
inline.akrzemi1 commentedon Nov 21, 2018
global objects declared
consthave internal linkage.aaron-michaux commentedon Nov 21, 2018
gast128 commentedon Nov 27, 2023
Can't these be turned into inline constexpr variables with BOOST_INLINE_CONSTEXPR. I had 2 hits:
akrzemi1 commentedon Nov 27, 2023
They could in C++17. But this has to work in C++11. I could special-case it for C++17, but there have to be sufficient motivation. Can someone point me to the place (in the IS perhaps) that tells if/why the current implementation is incompatible with modules?
gast128 commentedon Nov 27, 2023
I think BOOST_INLINE_CONSTEXPR expands to 'inline constexpr' when available and otherwise to 'const'. It may miss the 'static const' case though. Perhaps there is a Boost guideline.