GSL/tests
Anna Gringauze cb2d1af89a
Added template argument deduction for not_null (#689)
* Added template  argument deduction for not_null

This allows compilers with c++17 support to infer template
instantiation types when calling not_null constructor:

    int foo(not_null<const int*> x);

    int main()
    {
        int t = 0;
        not_null x{ &t };
        return foo(not_null{ &t });
    }

* replaced deduction guides by a simple constructor

* Updated tests

* fixed check for availability of std::byte

* testing c++1z on clang

* fixed cmakelists extra endif

* include cstddef header for clang and gcc in pointers

* fixed a typo

* fix missing nullptr_t type

* fixed typo in CMakeLists.tst

* change approach to c++17 testing, step one: revert cmake testing, update clang5.0 package

removed using latest c++ due to clang5.0 failing,
update clang5.0 travis config to use llvm-toolchain-trusty-5.0

* addressed comments
2018-06-07 13:36:56 -07:00
..
algorithm_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
assertion_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
at_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
bounds_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
byte_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
CMakeLists.txt Enable usage of gsl::narrow with exceptions disabled (#640) 2018-03-15 16:00:08 -07:00
multi_span_tests.cpp add gsl::index typedef (#620) 2018-02-21 13:33:07 -08:00
no_exception_ensure_tests.cpp Enable usage of gsl::narrow with exceptions disabled (#640) 2018-03-15 16:00:08 -07:00
no_exception_throw_tests.cpp Enable usage of gsl::narrow with exceptions disabled (#640) 2018-03-15 16:00:08 -07:00
notnull_tests.cpp Added template argument deduction for not_null (#689) 2018-06-07 13:36:56 -07:00
owner_tests.cpp Applied iwyu --comment to the code base (#588) 2017-11-28 07:13:49 -08:00
span_tests.cpp Fix return type of templated span.subspan() (#625) 2018-03-03 19:12:45 -08:00
strided_span_tests.cpp add gsl::index typedef (#620) 2018-02-21 13:33:07 -08:00
string_span_tests.cpp Add as_bytes for basic_string_span, fixes issue #655 (#683) 2018-05-28 19:03:10 -07:00
test.cpp Move from unittest-cpp to catch for unit testing. (#533) 2017-07-13 13:53:56 -07:00
utils_tests.cpp add gsl::index typedef (#620) 2018-02-21 13:33:07 -08:00