edrosten / libcvd

libcvd - efficient and easy to use C++ computer vision library.
Other
238 stars 103 forks source link

Update img_load to allow taking string parameters by const reference #81

Closed shanumante-sc closed 2 years ago

shanumante-sc commented 2 years ago

In the current implementation, we expose a method like img_load(std::string&) which means that temporary strings can't bind to it. However, it is fairly common to have the following code:

CVD::img_load(SomeBasePath() + "/my_specific_file.png")

and not allowing temporaries makes things cumbersome.