Skip to content

Commit

Permalink
Use fully qualified cli::array as it appears VS2015 gets confused wit…
Browse files Browse the repository at this point in the history
…h the generic std::array (must be in the newer C++ library as code builds fine in VS2013)

Resolves cefsharp#2049
  • Loading branch information
amaitland committed May 16, 2017
1 parent 7ba2de4 commit f93a387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CefSharp.Core/Internals/ClientAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ namespace CefSharp
{
auto resourceHandler = static_cast<ByteArrayResourceHandler^>(handler);

array<Byte>^ buffer = resourceHandler->Data;
//NOTE: Prefix with cli:: namespace as VS2015 gets confused with std::array
cli::array<Byte>^ buffer = resourceHandler->Data;
pin_ptr<Byte> src = &buffer[0];

auto streamReader = CefStreamReader::CreateForData(static_cast<void*>(src), buffer->Length);
Expand Down
3 changes: 2 additions & 1 deletion CefSharp.Core/SchemeHandlerFactoryWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ namespace CefSharp
{
auto resourceHandler = static_cast<ByteArrayResourceHandler^>(handler);

array<Byte>^ buffer = resourceHandler->Data;
//NOTE: Prefix with cli:: namespace as VS2015 gets confused with std::array
cli::array<Byte>^ buffer = resourceHandler->Data;
pin_ptr<Byte> src = &buffer[0];

auto streamReader = CefStreamReader::CreateForData(static_cast<void*>(src), buffer->Length);
Expand Down

0 comments on commit f93a387

Please sign in to comment.