| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
|
| 3 |
// PR libstdc++/104242 - Class with constructor from std::any is not copyable |
| 4 |
|
| 5 |
#include <any> |
| 6 |
#include <type_traits> |
| 7 |
|
| 8 |
struct A { |
| 9 |
A(const A&) = default; |
| 10 |
explicit A(std::any value); |
| 11 |
}; |
| 12 |
static_assert(std::is_copy_constructible_v<A>); |