This should be std::size_t at best; we just want to illustrate lazy instantiation, so here we need N <= 0 to make Array ill-formed.
| 2 | // illustrate lazy instantiation, so here we need N <= 0 |
| 3 | // to make Array<N> ill-formed. |
| 4 | class Array |
| 5 | { |
| 6 | public: |
| 7 | int arr[N]; |
| 8 | }; |
| 9 | |
| 10 | template<typename T> |
| 11 | T v = T::default_value(); |
nothing calls this directly
no outgoing calls
no test coverage detected