From 9462d12d6d5df67f11be3d4357bdd51bb708ce1f Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 26 Aug 2024 21:32:10 +0200 Subject: [PATCH] orm fixtypo in todo task [skip ci] --- include/orm/tiny/model.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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