Skip to content

Commit

Permalink
Merge pull request #36 from project-tsurugi/gcc-13
Browse files Browse the repository at this point in the history
fix for FTBFS with gcc-13 (test code)
  • Loading branch information
ashigeru authored Jun 7, 2024
2 parents 192c288 + 8b50b61 commit c545817
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/takatori/datetime/interval.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <cstdint>

#include "date_interval.h"
#include "time_interval.h"
#include "datetime_interval.h"
Expand Down
1 change: 1 addition & 0 deletions include/takatori/graph/multiport.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <algorithm>
#include <cstdint>
#include <utility>

#include <boost/container/small_vector.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/takatori/serializer/json_printer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <memory>
#include <ostream>

Expand Down
1 change: 1 addition & 0 deletions include/takatori/value/date.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <ostream>

#include "value_kind.h"
Expand Down
1 change: 1 addition & 0 deletions include/takatori/value/datetime_interval.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <ostream>

#include "value_kind.h"
Expand Down
1 change: 1 addition & 0 deletions include/takatori/value/time_of_day.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include <cstdint>
#include <ostream>

#include "value_kind.h"
Expand Down
1 change: 1 addition & 0 deletions include/takatori/value/time_point.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <chrono>
#include <cstdint>
#include <ostream>

#include "value_kind.h"
Expand Down
4 changes: 2 additions & 2 deletions test/takatori/util/optional_ptr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ TEST_F(optional_reference_test, empty) {
optional_ptr<std::string> ref;
ASSERT_FALSE(ref);
EXPECT_THROW(*ref, std::bad_optional_access);
EXPECT_THROW(ref->data(), std::bad_optional_access);
EXPECT_THROW((void) ref->data(), std::bad_optional_access);
EXPECT_EQ(ref.begin(), ref.end());
}

Expand All @@ -102,7 +102,7 @@ TEST_F(optional_reference_test, nullptr) {
optional_ptr<std::string> ref {ptr };
ASSERT_FALSE(ref);
EXPECT_THROW(*ref, std::bad_optional_access);
EXPECT_THROW(ref->data(), std::bad_optional_access);
EXPECT_THROW((void) ref->data(), std::bad_optional_access);
EXPECT_EQ(ref.begin(), ref.end());
}

Expand Down

0 comments on commit c545817

Please sign in to comment.