https://issues.shibboleth.net/jira/browse/CPPOST-14
[shibboleth/cpp-opensaml.git] / saml / saml2 / metadata / MetadataProvider.h
index 59f826a..834e8ae 100644 (file)
@@ -155,7 +155,7 @@ namespace opensaml {
             /**
              * Batches up criteria for entity lookup.
              */
-            struct Criteria {
+            struct SAML_API Criteria {
                 /**
                  * Constructor.
                  * 
@@ -192,6 +192,8 @@ namespace opensaml {
                     : entityID_unicode(NULL), entityID_ascii(NULL), artifact(a), role(q), protocol(prot), protocol2(NULL), validOnly(valid) {
                 }
                 
+                virtual ~Criteria() {}
+                
                 /** Unique ID of entity. */
                 const XMLCh* entityID_unicode;
                 /** Unique ID of entity. */