diff --git a/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp b/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp index 575a693..fe00ac2 100644 --- a/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp +++ b/qt/KDStlContainerAdaptor/test/tst_KDStlContainerAdaptor.cpp @@ -71,9 +71,18 @@ void tst_KDStlContainerAdaptor::vectorAdaptorIterators() } // For Qt5 (without C++17) and Qt6/C++17 compatibility -template struct AddConst { typedef const T type; }; -template constexpr typename AddConst::type &asConst(T &t) noexcept { return t; } -template void asConst(const T &&) = delete; // prevent rvalue arguments +template +struct AddConst +{ + typedef const T type; +}; +template +constexpr typename AddConst::type &asConst(T &t) noexcept +{ + return t; +} +template +void asConst(const T &&) = delete; // prevent rvalue arguments void tst_KDStlContainerAdaptor::vectorAdaptorDataAccess() {