Skip to content

Commit

Permalink
Fix build failure with -std=c++17 option (apache#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongke6 authored Dec 12, 2024
1 parent 1a02745 commit 282bc90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/butil/containers/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
// After C++17, `optional` is an alias for `std::optional`.

#if __cplusplus >= 201703L

#include <optional>

namespace butil {
using std::in_place_t;
using std::in_place;
Expand Down

0 comments on commit 282bc90

Please sign in to comment.