Skip to content
Snippets Groups Projects
Commit 1b93f37c authored by David C. Lonie's avatar David C. Lonie
Browse files

Avoid DeepCopy dispatch when array is empty.

MSVC 2010 appears to assert that arguments to `std::copy` are non-NULL
and will crash even when both input pointers are NULL and the copy is
really a no-op.

Add a runtime check to prevent the `std::copy` call from being made when
there is no data.
parent 7887522c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment