>From 0b4072a97f14a74dba080de85697b9a65a8db53f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 15 Mar 2017 01:06:23 +0100 Subject: [PATCH] Use "noreturn" attribute in the function declaration too Not using "noreturn" in all function declarations makes the program ill-formed according to 7.6.3/1 [dcl.attr.noreturn] of the C++ Standard and, while the Standard doesn't require any diagnostic, MSVC gives error C2381 (https://msdn.microsoft.com/en-us/library/5fs830ft.aspx), so this commit fixes MSVC build after f397d963fb5575e1f29057ae71b45e272a9494ab. --- any_member.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/any_member.hpp b/any_member.hpp index c04665a..55f4d28 100644 --- a/any_member.hpp +++ b/any_member.hpp @@ -548,6 +548,7 @@ class MemberSymbolTable MemberSymbolTable(MemberSymbolTable const&) = delete; MemberSymbolTable& operator=(MemberSymbolTable const&) = delete; + [[noreturn]] void complain_that_no_such_member_is_ascribed(std::string const&) const; member_map_type map_; -- 2.8.3