GeomIterator is not exposed for use if the library is built dynamically on windows (#1583)

This commit is contained in:
Carmen Fan
2021-07-27 08:36:44 +01:00
committed by GitHub
parent 3b401ec28f
commit f7765c531b
3 changed files with 13 additions and 13 deletions
@@ -71,7 +71,7 @@
namespace IfcGeom { namespace IfcGeom {
template <typename P = double, typename PP = P> template <typename P = double, typename PP = P>
class Iterator { class IFC_GEOM_API Iterator {
private: private:
Iterator(const Iterator&); // N/I Iterator(const Iterator&); // N/I
Iterator& operator=(const Iterator&); // N/I Iterator& operator=(const Iterator&); // N/I
@@ -8,9 +8,9 @@ IteratorFactoryImplementation<P, PP>& iterator_implementations() {
return impl; return impl;
} }
template IteratorFactoryImplementation<float, float>& iterator_implementations<float, float>(); template IFC_GEOM_API IteratorFactoryImplementation<float, float>& iterator_implementations<float, float>();
template IteratorFactoryImplementation<float, double>& iterator_implementations<float, double>(); template IFC_GEOM_API IteratorFactoryImplementation<float, double>& iterator_implementations<float, double>();
template IteratorFactoryImplementation<double, double>& iterator_implementations<double, double>(); template IFC_GEOM_API IteratorFactoryImplementation<double, double>& iterator_implementations<double, double>();
#ifdef HAS_SCHEMA_2x3 #ifdef HAS_SCHEMA_2x3
template <typename P, typename PP> template <typename P, typename PP>
@@ -46,7 +46,7 @@ struct get_factory_type<double, double> {
}; };
template <typename P, typename PP> template <typename P, typename PP>
class IteratorFactoryImplementation : public std::map<std::string, typename get_factory_type<P, PP>::type> { class IFC_GEOM_API IteratorFactoryImplementation : public std::map<std::string, typename get_factory_type<P, PP>::type> {
public: public:
IteratorFactoryImplementation(); IteratorFactoryImplementation();
void bind(const std::string& schema_name, typename get_factory_type<P, PP>::type fn); void bind(const std::string& schema_name, typename get_factory_type<P, PP>::type fn);