Commits

Edd Dawson <edd at mr-edd.co.uk> (mac)  committed 331621a

Workarounds for llvm-gcc

  • Participants
  • Parent commits 8b2dcae

Comments (0)

Files changed (2)

File tests/unit_tests/compression_failure.cpp

     pngxx::compression_failure pcf("advanced stuff");
 
     THROWS(pcf.throw_copy(), pngxx::compression_failure);
-    THROWS(pcf.clone()->throw_copy(), pngxx::compression_failure);
+
+    std::auto_ptr<imagexx::exception> clone(pcf.clone());
+    THROWS(clone->throw_copy(), pngxx::compression_failure);
 }
 

File tests/unit_tests/decompression_failure.cpp

     pngxx::decompression_failure pdf("advanced stuff");
 
     THROWS(pdf.throw_copy(), pngxx::decompression_failure);
-    THROWS(pdf.clone()->throw_copy(), pngxx::decompression_failure);
+
+    std::auto_ptr<imagexx::exception> clone(pdf.clone());
+    THROWS(clone->throw_copy(), pngxx::decompression_failure);
 }