From 0066ac26f0c2fa42ba31fdda208bdca961d582a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 1 Jul 2019 01:08:53 -0700 Subject: Add a missing return --- common/aloptional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/aloptional.h') diff --git a/common/aloptional.h b/common/aloptional.h index 75891329..207c299e 100644 --- a/common/aloptional.h +++ b/common/aloptional.h @@ -40,7 +40,7 @@ public: optional(const optional&) noexcept = delete; ~optional() { reset(); } - optional& operator=(nullopt_t) noexcept { reset(); } + optional& operator=(nullopt_t) noexcept { reset(); return *this; } template::value && std::is_copy_assignable::value)> optional& operator=(const optional &rhs) { -- cgit v1.2.3