Fixes needed to compile swift with MSVC with the /permissive- switch

which enables more C++ standard conformance.
This commit is contained in:
Mat Sutcliffe
2018-10-28 21:55:54 +00:00
committed by Klaus Basan
parent 919a31b250
commit df563d5b29
6 changed files with 29 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ namespace XSwiftBus
//! Set the value of part of the string (if it is writable)
void setSubstr(size_t offset, std::string const &s)
{ assert((s.size() + 1) <= (DataRefTraits::size - offset)); XPLMSetDatab(m_ref, s.c_str(), offset, s.size() + 1); }
{ assert((s.size() + 1) <= (DataRefTraits::size - offset)); XPLMSetDatab(m_ref, (void *)s.c_str(), (int)offset, (int)s.size() + 1); }
//! Get the value of part of the string
std::string getSubstr(size_t offset, size_t size) const