Re-add Boost.Array where it is ODR-used #64
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Determining the size of a type requires its definition; of which there is a "not-C++11-compliant" use and a C++11-agnostic use in
.../converter_lexical_streams.hpp
.This was mistakenly forward-declared as part of af5ce2a.
Specifically,
sizeof
usages here:af5ce2a#diff-a0b72e72f56fd9c8d25429567b14e23ef6b31f5091f3377428b8d6661798983eR473-R478
af5ce2a#diff-a0b72e72f56fd9c8d25429567b14e23ef6b31f5091f3377428b8d6661798983eL684-R687
In case I picked usages that aren't in develop's head (as ctrl-f'ing that file shows more usages than I expect), here's current usage as well:
lexical_cast/include/boost/lexical_cast/detail/converter_lexical_streams.hpp
Lines 446 to 456 in af5ce2a
lexical_cast/include/boost/lexical_cast/detail/converter_lexical_streams.hpp
Lines 473 to 485 in af5ce2a
Edit: changed GitHub /blame/ -> /blob/ since GitHub renders /blob/ nicely in comments/PRs.
Interestingly enough; in the "non-C++11-compliant" case the
ifndef
/ function was not removed; so the right answer might be to remove that function to drop down to a single usage and then remove that usage or put it as part of some static-compile test instead of adding arrays back. I don't remember if a reinterpret cast is an odr-use.