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

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


The following commit(s) were added to refs/heads/master by this push:
     new 820d0f9ccb Add check in ts.h that language is C++, version 17 or 
later. (#10796)
820d0f9ccb is described below

commit 820d0f9ccb5ea579015698536fde84c364ab434c
Author: Walt Karas <wka...@yahooinc.com>
AuthorDate: Mon Nov 27 18:50:05 2023 -0500

    Add check in ts.h that language is C++, version 17 or later. (#10796)
---
 include/ts/ts.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/ts/ts.h b/include/ts/ts.h
index 0bbd316360..3351947097 100644
--- a/include/ts/ts.h
+++ b/include/ts/ts.h
@@ -29,6 +29,10 @@
 
 #pragma once
 
+#if !defined(__cplusplus) || __cplusplus < 201703L
+#error "Must compile ATS plugin code with C++ version 17 or later."
+#endif
+
 #include <type_traits>
 
 #include <ts/apidefs.h>

Reply via email to