#119 Given the following in C++20:
using C=const char*;
template<class T, T p>
class X{};
X<C,"Hi"> x1;//A
char p[]="Hi";
X<C,p> x2;//B
struct A{constexpr A(C){};};
X<A,"Hi"> x3;//C
W/o checking, which is invalid:
A. A
B. B
C. C
D. See results
#Cplusplus
#Cpppolls
#Cpp20
19%
A
32%
B
20%
C
29%
D
376 votes • 2 days
Show this thread