mirror of https://github.com/davisking/dlib.git
Added missing const
This commit is contained in:
parent
beee49530a
commit
beae2212e6
|
@ -56,7 +56,7 @@ namespace dlib
|
|||
}
|
||||
|
||||
void gpu_data::
|
||||
async_copy_to_device()
|
||||
async_copy_to_device() const
|
||||
{
|
||||
if (!device_current)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue