Home | History | Annotate | Download | only in temp.arg.nontype

Lines Matching refs:nullptr_t

4   typedef decltype(nullptr) nullptr_t;
13 constexpr std::nullptr_t get_nullptr() { return nullptr; }
15 constexpr std::nullptr_t np = nullptr;
17 std::nullptr_t nonconst_np; // expected-note{{declared here}}
27 IP<nonconst_np> ip5; // expected-error{{non-type template argument of type 'std::nullptr_t' (aka 'nullptr_t') is not a constant expression}} \
58 template<std::nullptr_t np> struct NP { // expected-note 2{{template parameter is declared here}}
65 NP<0> np4; // expected-error{{null non-type template argument must be cast to template parameter type 'std::nullptr_t' (aka 'nullptr_t')}}
67 NP<i> np5; // expected-error{{non-type template argument of type 'const int' cannot be converted to a value of type 'std::nullptr_t'}}