diff --git a/main.cpp b/main.cpp index ba1c452..e7426f6 100644 --- a/main.cpp +++ b/main.cpp @@ -7,6 +7,7 @@ void print(int x) int main() { - print(static_cast(5.5F)); + constexpr float testVal { 5.5F }; + print(static_cast(testVal)); return 0; }