Skip to content

Commit a3122ff

Browse files
committed
Add whitespace around class bad_variant_access [ci skip]
1 parent a8d6e25 commit a3122ff

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/nonstd/variant.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,11 @@ using variant_alternative_t = typename variant_alternative<K, T>::type;
13771377
// 19.7.11 Class bad_variant_access
13781378

13791379
#ifdef variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS
1380+
13801381
using variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS;
1382+
13811383
#else
1384+
13821385
class variant_nodiscard bad_variant_access : public std::exception
13831386
{
13841387
public:
@@ -1391,6 +1394,7 @@ class variant_nodiscard bad_variant_access : public std::exception
13911394
return "bad variant access";
13921395
}
13931396
};
1397+
13941398
#endif // variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS
13951399

13961400
#endif // variant_CONFIG_NO_EXCEPTIONS

template/variant.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,11 @@ using variant_alternative_t = typename variant_alternative<K, T>::type;
12521252
// 19.7.11 Class bad_variant_access
12531253

12541254
#ifdef variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS
1255+
12551256
using variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS;
1257+
12561258
#else
1259+
12571260
class variant_nodiscard bad_variant_access : public std::exception
12581261
{
12591262
public:
@@ -1266,6 +1269,7 @@ class variant_nodiscard bad_variant_access : public std::exception
12661269
return "bad variant access";
12671270
}
12681271
};
1272+
12691273
#endif // variant_CONFIG_OVERRIDE_BAD_VARIANT_ACCESS
12701274

12711275
#endif // variant_CONFIG_NO_EXCEPTIONS

0 commit comments

Comments
 (0)