Skip to content
This repository
Browse code

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
Artem Pavlenko artemp authored

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. +10 1 include/mapnik/image_util.hpp
11 include/mapnik/image_util.hpp
@@ -33,7 +33,7 @@
33 33
34 34 namespace mapnik {
35 35
36   - template <typename T> MAPNIK_DECL
  36 + template <typename T>
37 37 void save_to_file(std::string const& filename,
38 38 std::string const& type,
39 39 T const& image);
@@ -210,6 +210,15 @@ namespace mapnik {
210 210 }
211 211 }
212 212 }
  213 +#ifdef _MSC_VER
  214 + template MAPNIK_DECL void save_to_file<ImageData32>(std::string const&,
  215 + std::string const& ,
  216 + ImageData32 const&);
  217 +
  218 + template MAPNIK_DECL void save_to_file<image_view<ImageData32> > (std::string const&,
  219 + std::string const& ,
  220 + image_view<ImageData32> const&);
  221 +#endif
213 222 }
214 223
215 224 #endif //IMAGE_UTIL_HPP

0 comments on commit 097397f

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