In file included from /home/serge/githubs/sqlpp11-connector-postgresql/include/sqlpp11/postgresql/postgresql.h:31,
from /home/serge/githubs/sqlpp11-connector-postgresql/tests/DateTest.cpp:30:
/home/serge/githubs/sqlpp11-connector-postgresql/include/sqlpp11/postgresql/connection.h: In instantiation of ‘decltype (((sqlpp::postgresql::connection*)this)->sqlpp::postgresql::connection::_prepare(t, sqlpp::prepare_check_t<sqlpp::postgresql::context_t, T>{})) sqlpp::postgresql::connection::prepare(const T&) [with T = sqlpp::statement_t<void, sqlpp::update_t, sqlpp::single_table_t<void, TabDateTime>, sqlpp::update_list_t<void, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint>, sqlpp::parameter_t<sqlpp::day_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint> > >, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint>, sqlpp::parameter_t<sqlpp::time_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint> > > >, sqlpp::where_t<void, sqlpp::unconditional_t> >; decltype (((sqlpp::postgresql::connection*)this)->sqlpp::postgresql::connection::_prepare(t, sqlpp::prepare_check_t<sqlpp::postgresql::context_t, T>{})) = sqlpp::prepared_update_t<sqlpp::postgresql::connection, sqlpp::statement_t<void, sqlpp::update_t, sqlpp::single_table_t<void, TabDateTime>, sqlpp::update_list_t<void, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint>, sqlpp::parameter_t<sqlpp::day_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint> > >, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint>, sqlpp::parameter_t<sqlpp::time_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint> > > >, sqlpp::where_t<void, sqlpp::unconditional_t> > >]’:
/home/serge/githubs/sqlpp11-connector-postgresql/tests/DateTest.cpp:131:35: required from here
/home/serge/githubs/sqlpp11-connector-postgresql/include/sqlpp11/postgresql/connection.h:319:60: error: ‘_’ is not a member of ‘sqlpp::prepare_check_t<sqlpp::postgresql::context_t, sqlpp::statement_t<void, sqlpp::update_t, sqlpp::single_table_t<void, TabDateTime>, sqlpp::update_list_t<void, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint>, sqlpp::parameter_t<sqlpp::day_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColDayPoint> > >, sqlpp::assignment_t<sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint>, sqlpp::parameter_t<sqlpp::time_point, sqlpp::column_t<TabDateTime, TabDateTime_::ColTimePoint> > > >, sqlpp::where_t<void, sqlpp::unconditional_t> > >’ {aka ‘sqlpp::consistent_t’}
sqlpp::prepare_check_t<_serializer_context_t, T>::_();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
[serge@archlinux sqlpp11-connector-postgresql]$ git diff include/sqlpp11/postgresql/connection.h
diff --git a/include/sqlpp11/postgresql/connection.h b/include/sqlpp11/postgresql/connection.h
index 3405ff8..668e26c 100644
--- a/include/sqlpp11/postgresql/connection.h
+++ b/include/sqlpp11/postgresql/connection.h
@@ -299,7 +299,7 @@ namespace sqlpp
template <typename T>
auto operator()(const T& t) -> decltype(this->_run(t, sqlpp::run_check_t<_serializer_context_t, T>{}))
{
- sqlpp::run_check_t<_serializer_context_t, T>::_();
+ sqlpp::run_check_t<_serializer_context_t, T>{};
return _run(t, sqlpp::run_check_t<_serializer_context_t, T>{});
}
@@ -316,7 +316,7 @@ namespace sqlpp
template <typename T>
auto prepare(const T& t) -> decltype(this->_prepare(t, sqlpp::prepare_check_t<_serializer_context_t, T>{}))
{
- sqlpp::prepare_check_t<_serializer_context_t, T>::_();
+ sqlpp::prepare_check_t<_serializer_context_t, T>{};
return _prepare(t, sqlpp::prepare_check_t<_serializer_context_t, T>{});
}