MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / A

Class A

09.02-floatingPointNTTP0/main.cpp:9–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#if(__cpp_nontype_template_args >= 201911) && not defined(__clang__)
8template<double x>
9struct A; // #A A type which uses double as NTTP
10
11// #B Different bit pattern results in different type
12static_assert(not std::is_same_v<A<+0.6 - 0.2>, A<0.4>>);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected