8 lines
236 B
C++
8 lines
236 B
C++
#include "numbers.hpp"
|
|
template<Addable T>
|
|
T twice(T value) { return value + value; }
|
|
constexpr int evaluation_mode() {
|
|
if consteval { return 1; } else { return 2; }
|
|
}
|
|
int main() { return increment(twice(20)) + evaluation_mode(); }
|