Derive exceptions from boost::exception and use boost::throw_exception to enable...
[libdcp.git] / src / subtitle_asset.cc
index c7051eaeead55d5303e06e899bcdd43d6a814b83..ba91cf9028932117953a9137099434ff36821fa5 100644 (file)
@@ -413,7 +413,7 @@ SubtitleAsset::write_xml (ostream& s) const
          << "  <Language>" << _language << "</Language>\n";
 
        if (_load_font_nodes.size() > 1) {
-               throw MiscError ("multiple LoadFont nodes not supported");
+               boost::throw_exception (MiscError ("multiple LoadFont nodes not supported"));
        }
 
        if (!_load_font_nodes.empty ()) {