Skip to content

Commit

Permalink
SQLiteCpp/Statement.h: add missing <cstdint> include (#488)
Browse files Browse the repository at this point in the history
Without the change the build fails on `gcc-15` as:

    [  5%] Building CXX object CMakeFiles/SQLiteCpp.dir/src/Backup.cpp.o
    In file included from /build/source/include/SQLiteCpp/Column.h:14,
                     from /build/source/include/SQLiteCpp/Database.h:14,
                     from /build/source/include/SQLiteCpp/Backup.h:15,
                     from /build/source/src/Backup.cpp:12:
/build/source/include/SQLiteCpp/Statement.h:132:39: error: 'uint32_t'
does not name a type
      132 |     void bind(const int aIndex, const uint32_t      aValue);
          |                                       ^~~~~~~~
/build/source/include/SQLiteCpp/Statement.h:20:1: note: 'uint32_t' is
defined in header '<cstdint>'; this is probably fixable by adding
'#include <cstdint>'
       19 | #include <memory>
      +++ |+#include <cstdint>
       20 |
  • Loading branch information
SRombauts authored Sep 7, 2024
2 parents 58c46e3 + a4287a7 commit 643b153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/SQLiteCpp/Statement.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <SQLiteCpp/Exception.h>
#include <SQLiteCpp/Utils.h> // SQLITECPP_PURE_FUNC

#include <cstdint>
#include <string>
#include <map>
#include <memory>
Expand Down

0 comments on commit 643b153

Please sign in to comment.