Y
Hacker News
new
|
ask
|
show
|
jobs
by
IvanVergiliev
3125 days ago
And throw an `inline` in there just to be more likely to end up with something macro-like.
2 comments
atilaneves
3125 days ago
`constexpr` is implicitly `inline`:
http://en.cppreference.com/w/cpp/language/inline
link
gpderetta
3124 days ago
orthogonally, templates are also implicitly inline.
Then again, inline does not mean what most people think.
link
kindfellow92
3125 days ago
“inline” is more about linkage than about actual inlining. The compiler will in-line regardless of that attribute.
link