mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
frontend/mame/infoxml.cpp: Work around an MSVCPRT shortcoming with promise types (see e.g. GitHub #9665).
This commit is contained in:
parent
f923edc466
commit
59a8e9dd5a
@ -436,7 +436,13 @@ void info_xml_creator::output(std::ostream &out, const std::function<bool(const
|
|||||||
prepared_info() = default;
|
prepared_info() = default;
|
||||||
prepared_info(const prepared_info &) = delete;
|
prepared_info(const prepared_info &) = delete;
|
||||||
prepared_info(prepared_info &&) = default;
|
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;
|
prepared_info &operator=(const prepared_info &) = delete;
|
||||||
|
#endif
|
||||||
|
|
||||||
std::string m_xml_snippet;
|
std::string m_xml_snippet;
|
||||||
device_type_set m_dev_set;
|
device_type_set m_dev_set;
|
||||||
|
Loading…
Reference in New Issue
Block a user