// Both a function and meta-function | |
constexpr int add_constexpr(int a, int b) | |
{ | |
return a + b; | |
} | |
// Compute the value at compile time | |
add_constexpr(1, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment