Comments (1)
This seems to be a compiler bug in msvc where the C++17 elision rules don't correctly work inside decltype.
Related report: https://developercommunity.visualstudio.com/t/C17-Guaranteed-Copy-Elision-does-not-a/10374637
A workaround for this is to declare the move constructor of your type private and not implement it.
The existence of the signature, or rather it not being explicitly deleted, is enough to make Boost.PFR work again.
from pfr.
Related Issues (20)
- Test `template_constructor.cpp` doesn't work since MSVC 19.20
- Expected to work with Lambdas? HOT 3
- Recursive structure_to_tuple/structure_tie HOT 1
- error: variable 'boost::pfr::detail::fake_object<Test>' is used but not defined HOT 9
- Addressing the limitation of the LOOPHOLE HOT 2
- Wrong BOOST_PFR_CORE_NAME_PARSING with "clang for MSVC" HOT 2
- GIve away the details of `get_name` HOT 9
- Addressing the limitation of `get_name` (non-internal linkage) HOT 2
- offset_based_getter produces wrong result with clang on non-X86 platform HOT 3
- `structure_to_tuple` should be able to throw exceptions for some types
- `hash_value` doesn't work at all
- Introduce `boost::pfr::io` and `boost::pfr::io_fields` analogues with field names printing
- The docs should not accustom to use `std::is_aggregate` in PFR integration
- char reading in io_fields.hpp does not ignore newline and spaces
- boost::pfr::names_as_array<T> does not work on structure include c array HOT 2
- structure_to_tuple accepts scalars
- is_reflectable documentation HOT 2
- names_as_array returns an incorrect type when the input has zero fields HOT 1
- gcc-13 warning: unknown pragma regarding -Wundefined-var-template
- MSVC 14.1 warning: unreferenced parameter in stdtuple.hpp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfr.