diff --git a/include/orm/tiny/model.hpp b/include/orm/tiny/model.hpp index 7fbd46e1f..c6b6bb258 100644 --- a/include/orm/tiny/model.hpp +++ b/include/orm/tiny/model.hpp @@ -2214,7 +2214,7 @@ TINYORM_END_COMMON_NAMESPACE // BUG clang on mingw inline static initialization with another static in the same class defined line before, all other compilers (on Linux too) works silverqx // CUR docs mdx syntax highlight prism Treeview https://prismjs.com/plugins/treeview/ silverqx // CUR docs IdealImage silverqx -// TODO cache static_cast<>(*this) in the model()/basemodel() CRTP as a class data member std::optional> m_model = std::nullopt, but I will have to create copy ctor to set m_model {std::nullopt}, the same for other similar model() methods like Model::model(), then I can to check if (m_model) and return right away and I will call static_cast or dynamic_cast only once for every instance, it is cast everytime now 😟 silverqx +// TODO cache static_cast<>(*this) in the model()/basemodel() CRTP as a class data member std::optional> m_model = std::nullopt, but I will have to create copy ctor to set m_model {std::nullopt}, the same for other similar model() methods like Model::model(), then I can to check if (m_model) and return right away and I will call static_cast or dynamic_cast only once for every instance, it is cast every time now 😟 silverqx // CUR docs exceptions, which methods throw which exceptions, so user know which exception classes to define in a catch blocks silverqx // SEC fix LoadLibrary() before qsql plugin loads? https://www.qt.io/blog/security-advisory-qlockfile-qauthenticator-windows-platform-plugin silverqx // CUR cmake, make TinyUtils_target in TinyTestCommon.cmake optional, not always needed to link to silverqx