Skip to content

Commit

Permalink
Add public access modifier for mscv correct linkage.
Browse files Browse the repository at this point in the history
private static fileds are mangled as C and public static fields are mangled as S on MSVC. since fields with no access modifeiers in C++ classes are private by default, it affects the mangling of the fields on windows so need for public there
  • Loading branch information
Emmanuel Nyarko authored and Emmanuel Nyarko committed May 24, 2024
1 parent b028f71 commit f1b6243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extras/AssociativeContainers/map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
template <typename K, typename V>
class Map
{
public: // msvc mangles public and private static fields differently so need for public
static Map<K,V>* make() {return new Map<K, V>(); }

void insertOrAssign(const K& key, const V& value)
Expand Down

0 comments on commit f1b6243

Please sign in to comment.