Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

vc-8_0 needs template functions instantiated/defined?? in header file…

… for proper export. gcc on the other hand , chokes with error : can not instantiate undefined function. Added #ifdef/#endif _MSC_VER.
  • Loading branch information...
commit 097397f422fb3ccc34dd15f7da20f2f6828234f8 1 parent 7c18308
@artemp artemp authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 include/mapnik/image_util.hpp
View
11 include/mapnik/image_util.hpp
@@ -33,7 +33,7 @@
namespace mapnik {
- template <typename T> MAPNIK_DECL
+ template <typename T>
void save_to_file(std::string const& filename,
std::string const& type,
T const& image);
@@ -210,6 +210,15 @@ namespace mapnik {
}
}
}
+#ifdef _MSC_VER
+ template MAPNIK_DECL void save_to_file<ImageData32>(std::string const&,
+ std::string const& ,
+ ImageData32 const&);
+
+ template MAPNIK_DECL void save_to_file<image_view<ImageData32> > (std::string const&,
+ std::string const& ,
+ image_view<ImageData32> const&);
+#endif
}
#endif //IMAGE_UTIL_HPP

0 comments on commit 097397f

Please sign in to comment.
Something went wrong with that request. Please try again.