fixed erroneous use of TOML_API causing ODR issue (closes #136)

This commit is contained in:
Mark Gillard 2022-01-13 00:36:43 +02:00
parent 5c5abfd8e9
commit 0388589810
3 changed files with 8 additions and 2 deletions

View File

@ -14,6 +14,12 @@ template:
-->
## Unreleased
#### Fixes:
- fixed erroneous use of `TOML_API` causing ODR issue (#136) (@Azarael)
## [v3.0.0](https://github.com/marzer/tomlplusplus/releases/tag/v3.0.0) - 2022-01-11

View File

@ -117,7 +117,7 @@ TOML_NAMESPACE_START
elems_.push_back(std::move(elem));
}
TOML_API
TOML_EXTERNAL_LINKAGE
array::vector_iterator array::insert_at(const_vector_iterator pos, impl::node_ptr && elem)
{
return elems_.insert(pos, std::move(elem));

View File

@ -10412,7 +10412,7 @@ TOML_NAMESPACE_START
elems_.push_back(std::move(elem));
}
TOML_API
TOML_EXTERNAL_LINKAGE
array::vector_iterator array::insert_at(const_vector_iterator pos, impl::node_ptr && elem)
{
return elems_.insert(pos, std::move(elem));