mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
core: add missing #include <tuple>
Fixes gcc complaining about /build/subsurface-beta-202408210659/core/divecomputer.cpp: In function 'bool operator<(const event&, const event&)': /build/subsurface-beta-202408210659/core/divecomputer.cpp:290:21: error: 'tie' is not a member of 'std' 290 | return std::tie(ev1.time.seconds, ev1.name) < | ^~~ /build/subsurface-beta-202408210659/core/divecomputer.cpp:13:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'? 12 | #include <stdlib.h> +++ |+#include <tuple> 13 | /build/subsurface-beta-202408210659/core/divecomputer.cpp:291:21: error: 'tie' is not a member of 'std' 291 | std::tie(ev2.time.seconds, ev2.name); | ^~~ /build/subsurface-beta-202408210659/core/divecomputer.cpp:291:21: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'? Signed-off-by: Richard Fuchs <dfx@dfx.at>
This commit is contained in:
parent
14b9074f40
commit
3c3856f9e8
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <tuple>
|
||||
|
||||
divecomputer::divecomputer() = default;
|
||||
divecomputer::~divecomputer() = default;
|
||||
|
|
Loading…
Add table
Reference in a new issue