arximboldi / immer

Postmodern immutable and persistent data structures for C++ — value semantics at scale
https://sinusoid.es/immer
Boost Software License 1.0
2.48k stars 177 forks source link

Fix msvc c2975 #262

Closed colugomusic closed 1 year ago

colugomusic commented 1 year ago

In MSVC a constexpr variable loses its constexpr-ness when being captured by a lambda, so the use of size in aligned_storage_t results in: error C2975: '_Len': invalid template argument for 'std::aligned_storage_t', expected compile-time constant expression

codecov-commenter commented 1 year ago

Codecov Report

Merging #262 (77c2f42) into master (21cc60e) will not change coverage. The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master     #262   +/-   ##
=======================================
  Coverage   90.50%   90.50%           
=======================================
  Files         119      119           
  Lines       12121    12121           
=======================================
  Hits        10970    10970           
  Misses       1151     1151           
Impacted Files Coverage Δ
immer/detail/rbts/rrbtree.hpp 88.65% <100.00%> (ø)