mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix issue #39: Add header guards
This commit is contained in:
parent
2ae46395fa
commit
008a7373d5
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef ARRAY_VIEW_H
|
||||
#define ARRAY_VIEW_H
|
||||
|
||||
#include <new>
|
||||
#include <stdexcept>
|
||||
#include <cstddef>
|
||||
@ -2286,3 +2289,5 @@ general_array_view_iterator<ArrayView> operator+(typename general_array_view_ite
|
||||
#endif // _MSC_VER <= 1800
|
||||
|
||||
#pragma pop_macro("_NOEXCEPT")
|
||||
|
||||
#endif // ARRAY_VIEW_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef FAIL_FAST_H
|
||||
#define FAIL_FAST_H
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
@ -45,3 +48,5 @@ inline void fail_fast_assert(bool cond, const char* const) { if (!cond) std::ter
|
||||
#endif // SAFER_CPP_TESTING
|
||||
|
||||
}
|
||||
|
||||
#endif // FAIL_FAST_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef GSL_H
|
||||
#define GSL_H
|
||||
|
||||
#include "array_view.h" // array_view, strided_array_view...
|
||||
#include "string_view.h" // zstring, string_view, zstring_builder...
|
||||
#include <memory>
|
||||
@ -285,3 +288,5 @@ private:
|
||||
template<class T> using maybe_null = maybe_null_ret<T>;
|
||||
|
||||
} // namespace Guide
|
||||
|
||||
#endif // GSL_H
|
||||
|
@ -16,6 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef STRING_VIEW_H
|
||||
#define STRING_VIEW_H
|
||||
|
||||
#include "array_view.h"
|
||||
#include <cstring>
|
||||
|
||||
@ -176,3 +179,5 @@ using zstring_builder = basic_zstring_builder<char, Max>;
|
||||
template <size_t Max = dynamic_range>
|
||||
using wzstring_builder = basic_zstring_builder<wchar_t, Max>;
|
||||
}
|
||||
|
||||
#endif // STRING_VIEW_H
|
||||
|
Loading…
Reference in New Issue
Block a user