frontend/mame/infoxml.cpp: Work around an MSVCPRT shortcoming with promise types (see e.g. GitHub #9665).

This commit is contained in:
Vas Crabb 2022-06-06 04:33:46 +10:00
parent f923edc466
commit 59a8e9dd5a

View File

@ -436,7 +436,13 @@ void info_xml_creator::output(std::ostream &out, const std::function<bool(const
prepared_info() = default;
prepared_info(const prepared_info &) = delete;
prepared_info(prepared_info &&) = default;
#if defined(_CPPLIB_VER) && defined(_MSVC_STL_VERSION)
// MSVCPRT currently requires default-constructible std::future promise types to be assignable
// remove this workaround when that's fixed
prepared_info &operator=(const prepared_info &) = default;
#else
prepared_info &operator=(const prepared_info &) = delete;
#endif
std::string m_xml_snippet;
device_type_set m_dev_set;