diff --git a/orm_lib/inc/drogon/orm/SqlBinder.h b/orm_lib/inc/drogon/orm/SqlBinder.h index 67cffe93..c77a8d5c 100644 --- a/orm_lib/inc/drogon/orm/SqlBinder.h +++ b/orm_lib/inc/drogon/orm/SqlBinder.h @@ -26,6 +26,7 @@ #include #include #include +#include namespace drogon { @@ -323,6 +324,14 @@ class SqlBinder _format.push_back(1); return *this; } + self &operator<<(float f) + { + return operator<<(std::to_string(f)); + } + self &operator<<(double f) + { + return operator<<(std::to_string(f)); + } self &operator<<(std::nullptr_t nullp) { _paraNum++;