cpp-common/bt2c: make some constructors of CStringView constexpr
[babeltrace.git] / src / cpp-common / bt2c / c-string-view.hpp
index fb1b3a658aeb87fab893da56d52c380780f7d25f..a7b54e70651fa271c3cc1dc71793a9ae044e19dd 100644 (file)
@@ -31,14 +31,14 @@ public:
      *
      * Intentionally not explicit.
      */
-    CStringView() noexcept = default;
+    constexpr CStringView() noexcept = default;
 
     /*
      * Builds a view of the C string `str` (may be `nullptr`).
      *
      * Intentionally not explicit.
      */
-    CStringView(const char * const str) noexcept : _mStr {str}
+    constexpr CStringView(const char * const str) noexcept : _mStr {str}
     {
     }
 
This page took 0.046071 seconds and 4 git commands to generate.