Fixed VS2015 build errors - had to prefix array<> with cli namespace as compiler was reporting ambiguous reference (VS2013 was fine with the code)

Basic VS2015 build should now be working
This commit is contained in:
amaitland
2015-09-01 22:04:33 +10:00
parent 5901cb60b0
commit 24a423bfc7
7 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ namespace CefSharp
}
else
{
array<Byte>^ buffer = gcnew array<Byte>(bytes_to_read);
auto buffer = gcnew cli::array<Byte>(bytes_to_read);
bytes_read = _stream->Read(buffer, 0, bytes_to_read);
pin_ptr<Byte> src = &buffer[0];
memcpy(data_out, static_cast<void*>(src), bytes_read);