Skip to content
Snippets Groups Projects
Unverified Commit 9f1cd517 authored by Jonathan Wakely's avatar Jonathan Wakely Committed by Jonathan Wakely
Browse files

libstdc++: Use reserved form of [[__likely__]] in <variant>

We should not use [[unlikely]] before C++20, so use [[__unlikely__]]
instead.

libstdc++-v3/ChangeLog:

	* include/std/variant (_Variant_storage::_M_reset): Use
	__unlikely__ form of attribute instead of unlikely.
parent dcc735aa
No related branches found
No related tags found
No related merge requests found
......@@ -492,7 +492,7 @@ namespace __variant
constexpr void
_M_reset()
{
if (!_M_valid()) [[unlikely]]
if (!_M_valid()) [[__unlikely__]]
return;
std::__do_visit<void>([](auto&& __this_mem) mutable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment