SecBuf(const std::vector<T>& x) : vec_(x) {}
~SecBuf() {
-#if defined(__has_feature) && __has_feature(address_sanitizer)
+#if defined(__has_feature)
+#if __has_feature(address_sanitizer)
// Make the address sanitizer happy assuming this won't reallocate
vec_.resize(vec_.capacity());
+#endif
#endif
std::memset(&vec_[0], 0, vec_.capacity() * sizeof(T));
};
};
void clear() {
-#if defined(__has_feature) && __has_feature(address_sanitizer)
+#if defined(__has_feature)
+#if __has_feature(address_sanitizer)
// Make the address sanitizer happy assuming this won't reallocate
vec_.resize(vec_.capacity());
+#endif
#endif
std::memset(&vec_[0], 0, vec_.capacity() * sizeof(T));
vec_.clear();