Fix issue #39: Add header guards

This commit is contained in:
Treb Connell 2015-09-24 18:08:34 -07:00
parent 8ae77b1fd5
commit 51da13607c
4 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,9 @@
#pragma once
#ifndef GSL_ARRAY_VIEW_H
#define GSL_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 // GSL_ARRAY_VIEW_H

View File

@ -16,6 +16,9 @@
#pragma once
#ifndef GSL_FAIL_FAST_H
#define GSL_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 // GSL_FAIL_FAST_H

View File

@ -16,6 +16,9 @@
#pragma once
#ifndef GSL_GSL_H
#define GSL_GSL_H
#include "array_view.h" // array_view, strided_array_view...
#include "string_view.h" // zstring, string_view, zstring_builder...
#include <memory>
@ -287,3 +290,5 @@ private:
template<class T> using maybe_null = maybe_null_ret<T>;
} // namespace Guide
#endif // GSL_GSL_H

View File

@ -16,6 +16,9 @@
#pragma once
#ifndef GSL_STRING_VIEW_H
#define GSL_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 // GSL_STRING_VIEW_H