c++ - constexpr
by Mac1ek from LinuxQuestions.org on (#6P1EB)
I have question - if i have loop - for, when in compilation time index begin to end is knowed, i cant use constexpr for this evaluation like this:
Code:for(int i = 0; i<10; ++i) {
constexpr foo(i);
}? Thanks.
Code:for(int i = 0; i<10; ++i) {
constexpr foo(i);
}? Thanks.