diff --git a/Examples/test-suite/cpp11_template_typedefs.i b/Examples/test-suite/cpp11_template_typedefs.i index 02cb8ac30..5f1f2e6f9 100644 --- a/Examples/test-suite/cpp11_template_typedefs.i +++ b/Examples/test-suite/cpp11_template_typedefs.i @@ -15,7 +15,7 @@ public: using type2_t = T2; T1 a; T2 b; - constexpr int get_n() { return N; } + constexpr int get_n() const { return N; } }; // Specialization for T1=const char*, T2=bool @@ -26,7 +26,7 @@ public: using type2_t = bool; type1_t a; type2_t b; - constexpr int get_n() { return 3 * N; } + constexpr int get_n() const { return 3 * N; } }; // alias templates