diff options
Diffstat (limited to 'third-party/mapbox')
-rw-r--r-- | third-party/mapbox/README.md.license | 4 | ||||
-rw-r--r-- | third-party/mapbox/optional.hpp | 5 | ||||
-rw-r--r-- | third-party/mapbox/recursive_wrapper.hpp | 5 | ||||
-rw-r--r-- | third-party/mapbox/variant.hpp | 5 | ||||
-rw-r--r-- | third-party/mapbox/variant_cast.hpp | 5 | ||||
-rw-r--r-- | third-party/mapbox/variant_io.hpp | 5 | ||||
-rw-r--r-- | third-party/mapbox/variant_visitor.hpp | 9 |
7 files changed, 36 insertions, 2 deletions
diff --git a/third-party/mapbox/README.md.license b/third-party/mapbox/README.md.license new file mode 100644 index 0000000000..aba8d376ed --- /dev/null +++ b/third-party/mapbox/README.md.license @@ -0,0 +1,4 @@ +# +# Copyright (c) MapBox 2016. All rights reserved. +# SPDX-License-Identifier: BSD-3-Clause +#
\ No newline at end of file diff --git a/third-party/mapbox/optional.hpp b/third-party/mapbox/optional.hpp index d84705c1ac..b9e682ab92 100644 --- a/third-party/mapbox/optional.hpp +++ b/third-party/mapbox/optional.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef MAPBOX_UTIL_OPTIONAL_HPP #define MAPBOX_UTIL_OPTIONAL_HPP diff --git a/third-party/mapbox/recursive_wrapper.hpp b/third-party/mapbox/recursive_wrapper.hpp index 4ffcbd7c93..8a85d3035c 100644 --- a/third-party/mapbox/recursive_wrapper.hpp +++ b/third-party/mapbox/recursive_wrapper.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef MAPBOX_UTIL_RECURSIVE_WRAPPER_HPP #define MAPBOX_UTIL_RECURSIVE_WRAPPER_HPP diff --git a/third-party/mapbox/variant.hpp b/third-party/mapbox/variant.hpp index 06a46abe5d..71108572e2 100644 --- a/third-party/mapbox/variant.hpp +++ b/third-party/mapbox/variant.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef MAPBOX_UTIL_VARIANT_HPP #define MAPBOX_UTIL_VARIANT_HPP diff --git a/third-party/mapbox/variant_cast.hpp b/third-party/mapbox/variant_cast.hpp index fe1ab35432..0795bcf40e 100644 --- a/third-party/mapbox/variant_cast.hpp +++ b/third-party/mapbox/variant_cast.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef VARIANT_CAST_HPP #define VARIANT_CAST_HPP diff --git a/third-party/mapbox/variant_io.hpp b/third-party/mapbox/variant_io.hpp index 1456cc5abc..7fdb8183e7 100644 --- a/third-party/mapbox/variant_io.hpp +++ b/third-party/mapbox/variant_io.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef MAPBOX_UTIL_VARIANT_IO_HPP #define MAPBOX_UTIL_VARIANT_IO_HPP diff --git a/third-party/mapbox/variant_visitor.hpp b/third-party/mapbox/variant_visitor.hpp index 54ddba0e1c..a5657d3451 100644 --- a/third-party/mapbox/variant_visitor.hpp +++ b/third-party/mapbox/variant_visitor.hpp @@ -1,3 +1,8 @@ +// +// Copyright (c) MapBox All rights reserved. +// SPDX-License-Identifier: BSD-3-Clause +// + #ifndef MAPBOX_UTIL_VARIANT_VISITOR_HPP #define MAPBOX_UTIL_VARIANT_VISITOR_HPP @@ -15,7 +20,7 @@ struct visitor<Fn> : Fn using Fn::operator(); template<typename T> - visitor(T&& fn) : Fn(std::forward<T>(fn)) {} + visitor(T&& fn) : Fn(std::forward<T>(fn)) {} }; template <typename Fn, typename... Fns> @@ -36,7 +41,7 @@ visitor<typename std::decay<Fns>::type...> make_visitor(Fns&&... fns) return visitor<typename std::decay<Fns>::type...> (std::forward<Fns>(fns)...); } - + } // namespace util } // namespace mapbox |