diff --git a/src/Magnum/Text/AbstractFontConverter.cpp b/src/Magnum/Text/AbstractFontConverter.cpp index d83f7abfb..dd6c6fc6e 100644 --- a/src/Magnum/Text/AbstractFontConverter.cpp +++ b/src/Magnum/Text/AbstractFontConverter.cpp @@ -40,8 +40,9 @@ AbstractFontConverter::AbstractFontConverter() = default; AbstractFontConverter::AbstractFontConverter(PluginManager::AbstractManager& manager, std::string plugin): PluginManager::AbstractPlugin(manager, std::move(plugin)) {} std::vector>> AbstractFontConverter::exportFontToData(AbstractFont& font, GlyphCache& cache, const std::string& filename, const std::string& characters) const { + /* MSVC 2013 complains about deleted Array copy constructor if {} is used */ CORRADE_ASSERT(features() >= (Feature::ExportFont|Feature::ConvertData), - "Text::AbstractFontConverter::exportFontToData(): feature not supported", {}); + "Text::AbstractFontConverter::exportFontToData(): feature not supported", (std::vector>>{})); return doExportFontToData(font, cache, filename, uniqueUnicode(characters)); } @@ -52,8 +53,9 @@ std::vector>> AbstractFo std::vector>> AbstractFontConverter::doExportFontToData(AbstractFont& font, GlyphCache& cache, const std::string& filename, const std::vector& characters) const #endif { + /* MSVC 2013 complains about deleted Array copy constructor if {} is used */ CORRADE_ASSERT(!(features() & Feature::MultiFile), - "Text::AbstractFontConverter::exportFontToData(): feature advertised but not implemented", {}); + "Text::AbstractFontConverter::exportFontToData(): feature advertised but not implemented", (std::vector>>{})); std::vector>> out; out.emplace_back(filename, std::move(doExportFontToSingleData(font, cache, characters))); @@ -119,15 +121,17 @@ bool AbstractFontConverter::doExportFontToFile(AbstractFont& font, GlyphCache& c } std::vector>> AbstractFontConverter::exportGlyphCacheToData(GlyphCache& cache, const std::string& filename) const { + /* MSVC 2013 complains about deleted Array copy constructor if {} is used */ CORRADE_ASSERT(features() >= (Feature::ExportGlyphCache|Feature::ConvertData), - "Text::AbstractFontConverter::exportGlyphCacheToData(): feature not supported", {}); + "Text::AbstractFontConverter::exportGlyphCacheToData(): feature not supported", (std::vector>>{})); return doExportGlyphCacheToData(cache, filename); } std::vector>> AbstractFontConverter::doExportGlyphCacheToData(GlyphCache& cache, const std::string& filename) const { + /* MSVC 2013 complains about deleted Array copy constructor if {} is used */ CORRADE_ASSERT(!(features() & Feature::MultiFile), - "Text::AbstractFontConverter::exportGlyphCacheToData(): feature advertised but not implemented", {}); + "Text::AbstractFontConverter::exportGlyphCacheToData(): feature advertised but not implemented", (std::vector>>{})); std::vector>> out; out.emplace_back(filename, std::move(doExportGlyphCacheToSingleData(cache)));