We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wlifetime-safety-intra-tu-suggestions
1 parent 9089489 commit 8762680Copy full SHA for 8762680
1 file changed
simplecpp.h
@@ -45,6 +45,16 @@
45
# include <sys/types.h>
46
#endif
47
48
+#if defined(__has_cpp_attribute)
49
+# if __has_cpp_attribute (clang::lifetimebound)
50
+# define SIMPLECPP_LIFETIMEBOUND [[clang::lifetimebound]]
51
+# else
52
+# define SIMPLECPP_LIFETIMEBOUND
53
+# endif
54
+#else
55
56
+#endif
57
+
58
#if defined(_MSC_VER)
59
# pragma warning(push)
60
// suppress warnings about "conversion from 'type1' to 'type2', possible loss of data"
0 commit comments