admb-project / admb

AD Model Builder
http://admb-project.org
Other
64 stars 19 forks source link

Fix warning for deprecated data_int assignment operator. #251

Closed johnoel closed 2 years ago

johnoel commented 2 years ago

Should be fixed.

ss.cpp: In constructor ‘model_data::model_data(int, char**)’:

ss.cpp:6001:38: warning: implicitly-declared ‘data_int& data_int::operator=(const data_int&)’ is deprecated [-Wdeprecated-copy]
 6001 |   if(recdev_end>retro_yr) recdev_end=retro_yr;
      |                                      ^~~~~~~~
In file included from ss.cpp:7:
ss.cpp: In member function ‘void model_parameters::preliminary_calculations()’:
ss.cpp:10726:21: warning: implicitly-declared ‘data_int& data_int::operator=(const data_int&)’ is deprecated [-Wdeprecated-copy]
10726 |     F_ballpark_yr = retro_yr;
      |                     ^~~~~~~~