Skip to content

Commit

Permalink
remove const in order to allow move to cast to an rvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 21, 2016
1 parent f56b2f3 commit 85974fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/librarylink.cpp.in
Expand Up @@ -579,8 +579,8 @@ DLLEXPORT int FS@ModelName@OpenHandle(
return LIBRARY_TYPE_ERROR;

try {
const Model_data data = fill(libData->MTensor_getRealData(pars),
libData->MTensor_getDimensions(pars)[0]);
Model_data data = fill(libData->MTensor_getRealData(pars),
libData->MTensor_getDimensions(pars)[0]);

const Handle_id hid = get_new_handle();

Expand Down

0 comments on commit 85974fe

Please sign in to comment.