Work around DMC compilation error

For some reason reference to a fixed-size array works in two other places
but not in this one...
This commit is contained in:
Arseny Kapoulkine 2015-10-18 15:58:16 -07:00
parent 75a811a4f7
commit 00d9f98ccc

View File

@ -4482,10 +4482,11 @@ PUGI__NS_BEGIN
// set value with conversion functions
template <typename String, typename Header>
PUGI__FN bool set_value_ascii(String& dest, Header& header, uintptr_t header_mask, char (&buf)[128])
PUGI__FN bool set_value_ascii(String& dest, Header& header, uintptr_t header_mask, char* buf)
{
#ifdef PUGIXML_WCHAR_MODE
char_t wbuf[128];
assert(strlength(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
size_t offset = 0;
for (; buf[offset]; ++offset) wbuf[offset] = buf[offset];