Compare commits

..

4 Commits

Author SHA1 Message Date
Sascha Kühl 5dae396842 use int64_t as id type in shipment model 2026-01-16 13:09:09 +01:00
Sascha Kühl bc1d5effd3 added compiler flags for windows to support /bigobj option 2026-01-16 13:08:50 +01:00
Sascha Kühl 340fa5fd28 cast explicitly to std::vector for query_insert_intermediate::into method 2026-01-16 13:08:19 +01:00
Sascha Kühl 1143710f8d added missing include of stringstream for windows 2026-01-16 13:07:49 +01:00
4 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_RELEASE "${GCC_CLANG_COMMON_FLAGS_RELEASE}")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
message(STATUS "MSVC detected - Adding compiler flags")
# set(CMAKE_CXX_FLAGS "/W3 /EHsc /bigobj")
set(CMAKE_CXX_FLAGS "/W3 /EHsc /bigobj")
# set(CMAKE_CXX_FLAGS_DEBUG "/MDd /Od /Zi /D_DEBUG /DDEBUG")
# set(CMAKE_CXX_FLAGS_RELEASE "/O1 /DNDEBUG")
add_compile_options(/Zc:preprocessor)

View File

@ -9,6 +9,7 @@
#include <cstring>
#include <iomanip>
#include <string>
#include <sstream>
#include <type_traits>
/*

View File

@ -11,7 +11,7 @@ query_insert_intermediate::query_insert_intermediate() {
}
query_into_intermediate query_insert_intermediate::into(const table &tab, const std::initializer_list<table_column> columns) {
return into(tab, {columns});
return into(tab, std::vector<table_column>{columns});
}
query_into_intermediate query_insert_intermediate::into(const table &tab, const std::vector<table_column> &columns) {

View File

@ -17,7 +17,7 @@ struct shipment {
shipment(const long id, std::string tracking_number)
: id(id), tracking_number(std::move(tracking_number)) {}
long id{};
int64_t id{};
std::string tracking_number;
object::collection<object::object_ptr<package> > packages{};
@ -35,7 +35,7 @@ struct package {
package(const long id, double weight, object::object_ptr<shipment> del)
: id(id), weight(weight), delivery(std::move(del)){}
long id{};
int64_t id{};
double weight{};
object::object_ptr<shipment> delivery;