Comments (2)
The clue is in the name of the test :)
MSVC still does not implement correct enum promotions, so this is an expected failure.
from type_traits.
@jzmaddock Thanks for the clarification, I have confirmed this is a compiler bug. Can you help confirm the following 2 issues?
issue1:
is_nothrow_move_constructible_test.cpp
.\boost/type_traits/is_nothrow_move_constructible.hpp(49): error C2248: 'non_copy::non_copy': cannot access private member declared in class 'non_copy'
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(24): note: see declaration of 'non_copy::non_copy'
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(20): note: see declaration of 'non_copy'
.\boost/type_traits/is_nothrow_move_constructible.hpp(55): note: see reference to class template instantiation 'boost::detail::false_or_cpp11_noexcept_move_constructible<T,void>' being compiled
with
[
T=non_copy
]
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(256): note: see reference to class template instantiation 'boost::is_nothrow_move_constructible<non_copy>' being compiled
.\boost/type_traits/is_nothrow_move_constructible.hpp(49): error C2280: 'delete_copy::delete_copy(const delete_copy &)': attempting to reference a deleted function
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(32): note: see declaration of 'delete_copy::delete_copy'
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(32): note: 'delete_copy::delete_copy(const delete_copy &)': function was explicitly deleted
.\boost/type_traits/is_nothrow_move_constructible.hpp(55): note: see reference to class template instantiation 'boost::detail::false_or_cpp11_noexcept_move_constructible<T,void>' being compiled
with
[
T=delete_copy
]
libs\type_traits\test\is_nothrow_move_constructible_test.cpp(260): note: see reference to class template instantiation 'boost::is_nothrow_move_constructible<delete_copy>' being compiled
issue2:
is_nothrow_move_assignable_test.cpp
.\boost/type_traits/is_nothrow_move_assignable.hpp(52): error C2280: 'non_assignable &non_assignable::operator =(const non_assignable &)': attempting to reference a deleted function
libs\type_traits\test\is_nothrow_move_assignable_test.cpp(25): note: see declaration of 'non_assignable::operator ='
libs\type_traits\test\is_nothrow_move_assignable_test.cpp(25): note: 'non_assignable &non_assignable::operator =(const non_assignable &)': function was explicitly deleted
.\boost/type_traits/is_nothrow_move_assignable.hpp(58): note: see reference to class template instantiation 'boost::detail::false_or_cpp11_noexcept_move_assignable<T,void>' being compiled
with
[
T=non_assignable
]
libs\type_traits\test\is_nothrow_move_assignable_test.cpp(251): note: see reference to class template instantiation 'boost::is_nothrow_move_assignable<non_assignable>' being compiled
from type_traits.
Related Issues (20)
- Operator traits documentation does not mention C++11 implementation
- `-Wconversion` warning in `type_traits/is_complete.hpp` HOT 1
- `-Wundef` warnings in `is_mem_fun_pointer_impl.hpp` HOT 1
- -Wconversion warning with is_signed for enums HOT 1
- __has_trivial_assign etc. deprecated under clang 15 HOT 1
- boost::is_integral<char8_t>::value is false HOT 1
- type_traits: Deprecation warnings with clang 15 HOT 1
- more classification/traits
- is_floating_point does not contain any C++23 types HOT 1
- add/rename remove_cv_ref to (C++20 compatible) remove_cvref HOT 1
- add is_integer HOT 3
- add is_character HOT 1
- add is_number HOT 3
- add remove_cvptr HOT 1
- add is_bool HOT 3
- add is_quotrem_order HOT 2
- add is_logic HOT 2
- add is_function_pointer
- add dependent_false HOT 2
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 type_traits.