Fix issue #39: Add header guards

This commit is contained in:
Treb Connell 2015-09-24 13:04:13 -07:00
parent 2ae46395fa
commit 008a7373d5
4 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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