[concept_check] CopyConstructible Concept Does Not Accept Lvalue Reference
Boost version: 1.67.0
Compiler: GCC 7.3.0
Environment: Cygwin on Windows 10 version 1709
In the Boost Concept Check library, CopyConstructible concept requires
operator & applicable to the type being checked, and the return value is
required to be convertible to pointer to the type.
However, pointer to reference is not allowed in C++. This concept check
fails to compile if applying to a lvalue reference type.
On the other hand, is_copy_constructible<T> type trait class in the Boost
Type Traits library and the standard C++ library both give positive result
on lvalue reference types.
For example, the following code snippet will fail to compile if T is a
lvalue reference:
#include
participants (1)
-
Qu Xing