Skip to content

Commit

Permalink
fixed erroneous use of TOML_API causing ODR issue (closes #136)
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Jan 12, 2022
1 parent 5c5abfd commit 0388589
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion include/toml++/impl/array.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion toml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0388589

Please sign in to comment.