File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ /bazel- *
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ git_repository(
35
35
name = "com_google_protobuf" ,
36
36
commit = "655310ca192a6e3a050e0ca0b7084a2968072260" ,
37
37
remote = "https://github.com/protocolbuffers/protobuf" ,
38
+ shallow_since = "1565024848 -0700" ,
38
39
)
39
40
40
41
http_archive (
Original file line number Diff line number Diff line change 26
26
#endif
27
27
28
28
namespace proxy_wasm {
29
- #ifndef __cpp_lib_optional
30
- template <typename T> using optional = absl::optional<T>;
31
- // Only available in C++17
32
- // inline constexpr absl::nullopt_t nullopt = absl::nullopt;
33
- #define PROXY_WASM_NULLOPT absl::nullopt
34
- #else
29
+ #if __cplusplus >= 201703L
30
+
35
31
template <typename T> using optional = std::optional<T>;
36
32
// Only available in C++17
37
33
// inline constexpr std::nullopt_t nullopt = std::nullopt;
38
34
#define PROXY_WASM_NULLOPT std::nullopt
39
- # endif
35
+ using string_view = std::string_view;
40
36
41
- #ifndef __cpp_lib_string_view
42
- using string_view = absl::string_view;
43
37
#else
44
- using string_view = std::string_view;
38
+
39
+ template <typename T> using optional = absl::optional<T>;
40
+ // Only available in C++17
41
+ // inline constexpr absl::nullopt_t nullopt = absl::nullopt;
42
+ #define PROXY_WASM_NULLOPT absl::nullopt
43
+ using string_view = absl::string_view;
44
+
45
45
#endif
46
46
} // namespace proxy_wasm
You can’t perform that action at this time.
0 commit comments