This is an automated email from the ASF dual-hosted git repository.

guangmingchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 282bc902 Fix build failure with -std=c++17 option (#2844)
282bc902 is described below

commit 282bc902af0b0cdf920e882cf4f1277119121fad
Author: tongke6 <[email protected]>
AuthorDate: Thu Dec 12 17:45:31 2024 +0800

    Fix build failure with -std=c++17 option (#2844)
---
 src/butil/containers/optional.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/butil/containers/optional.h b/src/butil/containers/optional.h
index ffa5cb3b..bde0ad2f 100644
--- a/src/butil/containers/optional.h
+++ b/src/butil/containers/optional.h
@@ -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;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to