seznam / SuperiorMySqlpp

SuperiorMySQL++
GNU Lesser General Public License v3.0
31 stars 20 forks source link

Make user-defined converters include-order independent #123

Closed Erbureth closed 5 years ago

Erbureth commented 5 years ago

Currently the users can specify converters for rowstream by template-specializing the SupericorMySqlpp::Converters::to(const char* str, unsigned int length) function.

However, this specialization has to be defined before superior_mysqlpp includes, otherwise it is not picked up.

Using templated converter struct instead would not have that problem.