you can store const reference on the input data:
const task4_5::data_type&  data_;
...

task4_5::solution::solution( const data_type& data )
       : data_( data )
{