Skip to content

Commit

Permalink
make function visible to the linker
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Apr 24, 2024
1 parent 32c0b5a commit 9a0c3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/operon/core/pset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PrimitiveSet {

Operon::Map<Operon::Hash, Primitive> pset_;

[[nodiscard]] auto GetPrimitive(Operon::Hash hash) const -> Primitive const&;
[[nodiscard]] auto OPERON_EXPORT GetPrimitive(Operon::Hash hash) const -> Primitive const&;

auto GetPrimitive(Operon::Hash hash) -> Primitive& {
return const_cast<Primitive&>(const_cast<PrimitiveSet const*>(this)->GetPrimitive(hash)); // NOLINT
Expand Down

0 comments on commit 9a0c3cd

Please sign in to comment.