diff --git a/05-Considering_Maintainability.md b/05-Considering_Maintainability.md index 3116412..402a08a 100644 --- a/05-Considering_Maintainability.md +++ b/05-Considering_Maintainability.md @@ -16,7 +16,7 @@ namespace my_project { // if the above macro would be expanded, then the following line would be: // static const double 3.14159 = 3.14159; // which leads to a compile-time error. Sometimes such errors are hard to understand. - static const double PI = 3.14159; + static constexpr double PI = 3.14159; }; } ```