i.e.-= changed it from returning a const ref of T to a const copy of T.
I can't see what the point if making the T const is. You're returning a copy, so why do you care what the caller does it with? I'd suggest either returning a straight copy, or, if you think it's performance critical, return a const ref like it was.
...also, I notice in several places you've done this:
36 - std::vector< std::string> const& data_dirs = GetDataDirector ies(); std::string> const data_dirs( GetDataDirector ies());
37 + std::vector<
i.e.-= changed it from returning a const ref of T to a const copy of T.
I can't see what the point if making the T const is. You're returning a copy, so why do you care what the caller does it with? I'd suggest either returning a straight copy, or, if you think it's performance critical, return a const ref like it was.
Cheers,