-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from stlab/develop
Release 1.4.0
- Loading branch information
Showing
28 changed files
with
3,134 additions
and
1,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
HERE=$(pwd) | ||
|
||
if [ ! -d /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ ]; then | ||
echo "You must have a destination directory (gcc 7.3.0 includes) in order to patch!" | ||
exit 1; | ||
fi | ||
|
||
pushd /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ | ||
|
||
patch -uN -p0 -g0 < "$HERE/.travis/patches/std_variant.patch" && echo "Patching of std.variant succeeded. Happy coding!" | ||
|
||
popd | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- variant 2018/03/26 12:03:53 258853 | ||
+++ variant 2018/03/26 13:09:10 258854 | ||
@@ -223,13 +223,17 @@ | ||
|
||
template<size_t _Np, typename _Union> | ||
constexpr decltype(auto) __get(in_place_index_t<_Np>, _Union&& __u) | ||
- { return __get(in_place_index<_Np-1>, std::forward<_Union>(__u)._M_rest); } | ||
+ { | ||
+ return __variant::__get(in_place_index<_Np-1>, | ||
+ std::forward<_Union>(__u)._M_rest); | ||
+ } | ||
|
||
// Returns the typed storage for __v. | ||
template<size_t _Np, typename _Variant> | ||
constexpr decltype(auto) __get(_Variant&& __v) | ||
{ | ||
- return __get(std::in_place_index<_Np>, std::forward<_Variant>(__v)._M_u); | ||
+ return __variant::__get(std::in_place_index<_Np>, | ||
+ std::forward<_Variant>(__v)._M_u); | ||
} | ||
|
||
// Various functions as "vtable" entries, where those vtables are used by | ||
@@ -358,10 +362,9 @@ | ||
|
||
template <typename... _Types> | ||
using __select_index = | ||
- typename __select_int::_Select_int_base<sizeof...(_Types)+1, | ||
+ typename __select_int::_Select_int_base<sizeof...(_Types) + 1, | ||
unsigned char, | ||
- unsigned short> | ||
- ::type::value_type; | ||
+ unsigned short>::type::value_type; | ||
|
||
template<typename... _Types> | ||
struct _Variant_storage<false, _Types...> | ||
@@ -1304,6 +1307,12 @@ | ||
|
||
#undef _VARIANT_RELATION_FUNCTION_TEMPLATE | ||
|
||
+#ifdef __clang__ | ||
+ public: | ||
+ using _Base::_M_u; // See https://bugs.llvm.org/show_bug.cgi?id=31852 | ||
+ private: | ||
+#endif | ||
+ | ||
template<size_t _Np, typename _Vp> | ||
friend constexpr decltype(auto) __detail::__variant::__get(_Vp&& __v); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[requires] | ||
boost/1.66.0@conan/stable | ||
boost/1.68.0@conan/stable | ||
|
||
[generators] | ||
cmake | ||
|
Oops, something went wrong.