diff --git a/.github/workflows/linux-full-tests.yml b/.github/workflows/linux-full-tests.yml index 0d047c40ec..d2b26d5ec6 100644 --- a/.github/workflows/linux-full-tests.yml +++ b/.github/workflows/linux-full-tests.yml @@ -105,13 +105,11 @@ jobs: tag: noble cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations - name: "Clang 19" shortname: clang19 tag: oracular cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations - name: "C++17 mode" shortname: c++17 tag: rolling diff --git a/.github/workflows/linux-nondefault.yml b/.github/workflows/linux-nondefault.yml index a704336dc2..501fa8a8d8 100644 --- a/.github/workflows/linux-nondefault.yml +++ b/.github/workflows/linux-nondefault.yml @@ -100,13 +100,11 @@ jobs: tag: noble cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations - name: "Clang 19" shortname: clang19 tag: oracular cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations - name: "C++17 mode" shortname: c++17 tag: rolling diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 257475f1f3..3b26272195 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -44,14 +44,12 @@ jobs: tag: noble cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations tests: true - name: "Clang 19" shortname: clang19 tag: oracular cc: clang cxx: clang++ - cxxflags: -Wno-deprecated-declarations tests: true - name: "C++17 mode" shortname: c++17 diff --git a/ql/currency.cpp b/ql/currency.cpp index 5c268c9c22..fce0b13680 100644 --- a/ql/currency.cpp +++ b/ql/currency.cpp @@ -89,16 +89,10 @@ namespace QuantLib { const std::string& formatString, const Currency& triangulationCurrency, const std::set& minorUnitCodes) - : data_(ext::make_shared(name, - code, - numericCode, - symbol, - fractionSymbol, - fractionsPerUnit, - rounding, - formatString, - triangulationCurrency, - minorUnitCodes)) {} + : Currency(name, code, numericCode, symbol, fractionSymbol, fractionsPerUnit, + rounding, triangulationCurrency, minorUnitCodes) { + data_->formatString = formatString; + } QL_DEPRECATED_ENABLE_WARNING diff --git a/ql/currency.hpp b/ql/currency.hpp index 8bb2f9b004..a2588d0e40 100644 --- a/ql/currency.hpp +++ b/ql/currency.hpp @@ -139,7 +139,7 @@ namespace QuantLib { /*! \deprecated Use the constructor without formatString. Deprecated in version 1.33. */ - QL_DEPRECATED + [[deprecated("Use the constructor without formatString")]] Data(std::string name, std::string code, Integer numericCode,