aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-11 13:35:50 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:28 -0300
commit276eb948c371b08bdaf71c1571f20c61308d71da (patch)
treef767894210b48982a0bc9507cc6e4e45bf5816af /tests
parentd0ad52388ee2718c0c9b265ea78b2842f0a5a67f (diff)
Fixes win32 symbol exporting for instantiated template classes.
Diffstat (limited to 'tests')
-rw-r--r--tests/libsample/photon.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/libsample/photon.h b/tests/libsample/photon.h
index 749e10e4b..e7bb146fc 100644
--- a/tests/libsample/photon.h
+++ b/tests/libsample/photon.h
@@ -53,20 +53,25 @@ public:
inline std::list<TemplateBase<CLASS_TYPE> > getListOfThisTemplateBase()
{
- std::list<TemplateBase<CLASS_TYPE> >objs;
+ std::list<TemplateBase<CLASS_TYPE> > objs;
objs.push_back(*this);
objs.push_back(*this);
return objs;
}
-
static inline TemplateBase<CLASS_TYPE>* passPointerThrough(TemplateBase<CLASS_TYPE>* obj) { return obj; }
private:
int m_value;
};
-typedef TemplateBase<IdentityType> ValueIdentity;
+#if defined _WIN32 || defined __CYGWIN__
+template class LIBSAMPLE_API TemplateBase<IdentityType>;
+template class LIBSAMPLE_API TemplateBase<DuplicatorType>;
+#endif
+
+typedef TemplateBase<IdentityType> ValueIdentity;
typedef TemplateBase<DuplicatorType> ValueDuplicator;
+
LIBSAMPLE_API int callCalculateForValueDuplicatorPointer(ValueDuplicator* value);
LIBSAMPLE_API int callCalculateForValueDuplicatorReference(ValueDuplicator& value);
LIBSAMPLE_API int countValueIdentities(const std::list<ValueIdentity>& values);