Added missing const

This commit is contained in:
Davis King 2015-10-21 06:29:24 -04:00
parent beee49530a
commit beae2212e6
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ namespace dlib
}
void gpu_data::
async_copy_to_device()
async_copy_to_device() const
{
if (!device_current)
{

View File

@ -48,11 +48,11 @@ namespace dlib
#ifdef DLIB_USE_CUDA
void async_copy_to_device();
void async_copy_to_device() const;
void set_size(size_t new_size);
#else
// 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)
{