mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
core: add missing #include <tuple>
Fixes gcc complaining about /build/subsurface-beta-202408190452/core/event.cpp: In member function 'bool event::operator==(const event&) const': /build/subsurface-beta-202408190452/core/event.cpp:64:21: error: 'tie' is not a member of 'std' 64 | return std::tie(time.seconds, type, flags, value, name) == | ^~~ /build/subsurface-beta-202408190452/core/event.cpp:6:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'? 5 | #include "subsurface-string.h" +++ |+#include <tuple> 6 | /build/subsurface-beta-202408190452/core/event.cpp:65:21: error: 'tie' is not a member of 'std' 65 | std::tie(b.time.seconds, b.type, b.flags, b.value, b.name); | ^~~ /build/subsurface-beta-202408190452/core/event.cpp:65: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
26c594382e
commit
a6ce6e56d3
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
#include "eventtype.h"
|
||||
#include "subsurface-string.h"
|
||||
|
||||
#include <tuple>
|
||||
|
||||
event::event() : type(SAMPLE_EVENT_NONE), flags(0), value(0),
|
||||
divemode(OC), hidden(false)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue