-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"inline" linkage necessary #65
Comments
I'm not sure how this code could be correct in a header-only library without |
global objects declared |
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
…On Wed, Nov 21, 2018 at 9:54 AM Andrzej Krzemieński < ***@***.***> wrote:
global objects declared const have internal linkage.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEYDyDEyKAbYs0icD6uImEUj2lSFs-K_ks5uxWklgaJpZM4YtPS0>
.
|
Can't these be turned into inline constexpr variables with BOOST_INLINE_CONSTEXPR. I had 2 hits:
|
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? |
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. |
The following lines in
optional.hpp
should have "inline" linkage. This is necessary for using<boost/optional/optional.hpp>
in a module.The text was updated successfully, but these errors were encountered: