I try to implement the amySQL, AND I want to intialize this connector intro test function.
class Foo
{
public:
void Test();
protected:
amy::connector mgr;
private:
asio::io_service m;
};
void Foo::Test()
{
mgr(m);
}
However when i want to compile i get this error:
error: no match for call to '(amy::connector {aka amy::basic_connector<amy::mysql_service>}) (asio::io_service&)'
mgr(m);
What i do wrong here? Repository to amy sql https://github.com/liancheng/amy