From 350ebab88a5e86a68bcfd519d0b4866c0dfcfa8c Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Fri, 5 Oct 2018 18:45:58 +0300 Subject: [PATCH] Workaround GCC 8-9 regression https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87531 --- .../boost/optional/detail/optional_trivially_copyable_base.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/optional/detail/optional_trivially_copyable_base.hpp b/include/boost/optional/detail/optional_trivially_copyable_base.hpp index 91328ac..d2e55fa 100644 --- a/include/boost/optional/detail/optional_trivially_copyable_base.hpp +++ b/include/boost/optional/detail/optional_trivially_copyable_base.hpp @@ -71,7 +71,7 @@ class tc_optional_base : public optional_tag // Assigns from another optional (deep-copies the rhs value) void assign ( tc_optional_base const& rhs ) { - this->operator=(rhs); + *this = rhs; } // Assigns from another _convertible_ optional (deep-copies the rhs value)