cpp11/constexpr.cc

13 lines
193 B
C++
Raw Permalink Normal View History

2012-05-05 10:23:48 -07:00
#include <iostream>
using namespace std;
2012-05-05 12:45:49 -07:00
constexpr int some_constant_func() {
2012-05-05 10:23:48 -07:00
return 41;
}
int my_int_arr[some_constant_func() + 1];
int main(int argc, char * argv []) {
return 0;
}