Update docs

This commit is contained in:
Simon Brand
2017-11-27 15:19:17 +00:00
parent e61179684c
commit 9abc013e43
2 changed files with 16 additions and 8 deletions

View File

@@ -2,15 +2,9 @@
<pre><code class="language-cpp">#define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_HPP</a> <pre><code class="language-cpp">#define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_HPP</a>
#define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_GCC49</a> #define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_VERSION_MAJOR</a>
#define <a href='doc_expected.html#expected.hpp'>IS_TRIVIALLY_COPY_CONSTRUCTIBLE</a>(T) #define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_VERSION_MINOR</a>
#define <a href='doc_expected.html#expected.hpp'>IS_TRIVIALLY_COPY_ASSIGNABLE</a>(T)
#define <a href='doc_expected.html#expected.hpp'>IS_TRIVIALLY_DESTRUCTIBLE</a>(T)
#define <a href='doc_expected.html#expected.hpp'>TL_EXPECTED_CXX14</a>
#define <a href='doc_expected.html#expected.hpp'>TL_MONOSTATE_INPLACE_MUTEX</a> #define <a href='doc_expected.html#expected.hpp'>TL_MONOSTATE_INPLACE_MUTEX</a>

View File

@@ -14,6 +14,9 @@
#ifndef TL_EXPECTED_HPP #ifndef TL_EXPECTED_HPP
#define TL_EXPECTED_HPP #define TL_EXPECTED_HPP
#define TL_EXPECTED_VERSION_MAJOR 0
#define TL_EXPECTED_VERSION_MINOR 1
#include <exception> #include <exception>
#include <functional> #include <functional>
#include <iostream> #include <iostream>
@@ -21,38 +24,49 @@
#include <utility> #include <utility>
#if (defined(_MSC_VER) && _MSC_VER == 1900) #if (defined(_MSC_VER) && _MSC_VER == 1900)
/// \exclude
#define TL_EXPECTED_MSVC2015 #define TL_EXPECTED_MSVC2015
#endif #endif
#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9) #if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9)
/// \exclude
#define TL_EXPECTED_GCC49 #define TL_EXPECTED_GCC49
#endif #endif
#if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 4) #if (defined(__GNUC__) && __GNUC__ == 5 && __GNUC_MINOR__ <= 4)
/// \exclude
#define TL_EXPECTED_GCC54 #define TL_EXPECTED_GCC54
#endif #endif
#if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \ #if (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ <= 9 && \
!defined(__clang__)) !defined(__clang__))
// GCC < 5 doesn't support overloading on const&& for member functions // GCC < 5 doesn't support overloading on const&& for member functions
/// \exclude
#define TL_EXPECTED_NO_CONSTRR #define TL_EXPECTED_NO_CONSTRR
// GCC < 5 doesn't support some standard C++11 type traits // GCC < 5 doesn't support some standard C++11 type traits
/// \exclude
#define IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \ #define IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
std::has_trivial_copy_constructor<T>::value std::has_trivial_copy_constructor<T>::value
/// \exclude
#define IS_TRIVIALLY_COPY_ASSIGNABLE(T) std::has_trivial_copy_assign<T>::value #define IS_TRIVIALLY_COPY_ASSIGNABLE(T) std::has_trivial_copy_assign<T>::value
// This one will be different for GCC 5.7 if it's ever supported // This one will be different for GCC 5.7 if it's ever supported
/// \exclude
#define IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>::value #define IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>::value
#else #else
/// \exclude
#define IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \ #define IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
std::is_trivially_copy_constructible<T>::value std::is_trivially_copy_constructible<T>::value
/// \exclude
#define IS_TRIVIALLY_COPY_ASSIGNABLE(T) \ #define IS_TRIVIALLY_COPY_ASSIGNABLE(T) \
std::is_trivially_copy_assignable<T>::value std::is_trivially_copy_assignable<T>::value
/// \exclude
#define IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>::value #define IS_TRIVIALLY_DESTRUCTIBLE(T) std::is_trivially_destructible<T>::value
#endif #endif
#if __cplusplus > 201103L #if __cplusplus > 201103L
/// \exclude
#define TL_EXPECTED_CXX14 #define TL_EXPECTED_CXX14
#endif #endif