| 1 | #ifndef B2_H |
|---|---|
| 2 | #define B2_H |
| 3 | |
| 4 | template<typename T, T v> |
| 5 | struct S { static constexpr T value = v; }; |
| 6 | template<typename T, T v> |
| 7 | constexpr T S<T, v>::value; |
| 8 | |
| 9 | #endif |
| 10 |
| 1 | #ifndef B2_H |
|---|---|
| 2 | #define B2_H |
| 3 | |
| 4 | template<typename T, T v> |
| 5 | struct S { static constexpr T value = v; }; |
| 6 | template<typename T, T v> |
| 7 | constexpr T S<T, v>::value; |
| 8 | |
| 9 | #endif |
| 10 |