Closed tomjnixon closed 2 years ago
Merging #161 (c94bea3) into master (0fe31b0) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #161 +/- ##
=======================================
Coverage 89.43% 89.43%
=======================================
Files 125 125
Lines 5667 5667
=======================================
Hits 5068 5068
Misses 599 599
Impacted Files | Coverage Δ | |
---|---|---|
include/adm/detail/id_map.hpp | 100.00% <ø> (ø) |
|
include/adm/private/rapidxml_utils.hpp | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
fix a few warnings when compiling with gcc and clang
This misses a few warnings like this from gcc (not clang):
I can't quite figure out the cause of this.
boost::optional<T>::get
just asserts that there is a value (doesn't throw an exception), soPositionOffset::get<ZOffset>
can return an uninitialised value, but this code doesn't return unlesshas
returns true, so that never happens.I suspect the compiler just gives up trying to work out what's happening in this specific case (lots of templates). Throwing an exception in
OptionalParameter::get
if the optional is empty seems to solve this, and would probably be a good idea, but it's a fairly big change to apply this to the non-auto-base types too.