Article 6P1EB c++ - constexpr

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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments