Commit a81fd0c6 authored by Thomas Peters's avatar Thomas Peters Committed by Davis E. King

don't cast away constness (#1865)

parent e8d24076
......@@ -186,7 +186,7 @@ namespace dlib
image_view(
image_type& img
) :
_data((char*)image_data(img)),
_data(reinterpret_cast<char*>(image_data(img))),
_width_step(width_step(img)),
_nr(num_rows(img)),
_nc(num_columns(img)),
......@@ -332,7 +332,7 @@ namespace dlib
const_image_view(
const image_type& img
) :
_data((char*)image_data(img)),
_data(reinterpret_cast<const char*>(image_data(img))),
_width_step(width_step(img)),
_nr(num_rows(img)),
_nc(num_columns(img))
......
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