Skip to content

Commit

Permalink
Explicitly included <cstdint> in examples and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trueqbit committed Jul 19, 2024
1 parent d639111 commit 6a96d1c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/blob_binding.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <sqlite3.h>
#include <sqlite_orm/sqlite_orm.h>
#include <cstdint>
#include <iostream>

using namespace sqlite_orm;
Expand Down
12 changes: 6 additions & 6 deletions examples/synchronous.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

#include <sqlite_orm/sqlite_orm.h>
#include <cstdint>
#include <string>

struct Query {
std::string src_ip;
uint16_t src_port;
uint16_t txn_id;
uint32_t tv_sec;
uint32_t tv_usec;
std::uint16_t src_port;
std::uint16_t txn_id;
std::uint32_t tv_sec;
std::uint32_t tv_usec;
std::string name;
uint16_t type;
std::uint16_t type;
};

int main(int, char**) {
Expand Down
1 change: 1 addition & 0 deletions tests/storage_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <cstdint>
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch_all.hpp>

Expand Down
3 changes: 2 additions & 1 deletion tests/sync_schema_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <cstdint>
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch_all.hpp>

Expand Down Expand Up @@ -138,7 +139,7 @@ TEST_CASE("issue521") {
struct MockDatabasePoco {
int id{-1};
std::string name;
uint32_t alpha{0};
std::uint32_t alpha{0};
float beta{0.0};

#ifndef SQLITE_ORM_AGGREGATE_NSDMI_SUPPORTED
Expand Down

0 comments on commit 6a96d1c

Please sign in to comment.