Encounter C2676 when i need to export the class
#include <unordered_map> #define LIBRARY #if defined(LIBRARY) # define EXPORT __declspec(dllexport) #else # define EXPORT __declspec(dllimport) #endif struct Base { double d1; double d2; double d3; /* It can be built if I uncommon the following code. */ //bool operator==(const Base& rhs) const { // return true; //} }; struct EXPORT Derived : public std::unordered_map<int, Base> […]