mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Prevent multiple definitions of adl_info
As currently implemented, `adl_info` can potentially be defined wherever `magic_enum.hpp` is included, this can lead to linker errors downstream. Making the function static-inline prevents this from happening.
This commit is contained in:
parent
aaf57737d5
commit
24853ff6d6
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ struct adl_info_holder {
|
|||
constexpr static adl_info_holder<IsFlags,Min,Max,prefix_len> prefix() { return {};}
|
||||
};
|
||||
|
||||
adl_info_holder<> adl_info()
|
||||
static inline adl_info_holder<> adl_info()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue