Commit beae2212 authored by Davis King's avatar Davis King

Added missing const

parent beee4953
...@@ -56,7 +56,7 @@ namespace dlib ...@@ -56,7 +56,7 @@ namespace dlib
} }
void gpu_data:: void gpu_data::
async_copy_to_device() async_copy_to_device() const
{ {
if (!device_current) if (!device_current)
{ {
......
...@@ -48,11 +48,11 @@ namespace dlib ...@@ -48,11 +48,11 @@ namespace dlib
#ifdef DLIB_USE_CUDA #ifdef DLIB_USE_CUDA
void async_copy_to_device(); void async_copy_to_device() const;
void set_size(size_t new_size); void set_size(size_t new_size);
#else #else
// Note that calls to host() or device() will block until any async transfers are complete. // Note that calls to host() or device() will block until any async transfers are complete.
void async_copy_to_device(){} void async_copy_to_device() const{}
void set_size(size_t new_size) void set_size(size_t new_size)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment