Hi,

Over the last week, I added a C++11 std-tuple.h file which allows for
any number of elements.

It compiles and works fine for 10 elements or less, but when I go over
the limit, I get compile errors listed below.

What other files in SOCI do I need to modify in order for this to
compile and run?  Thanks in advance.

- Ken


[ 82%] Building CXX object
tst/ntg/CMakeFiles/pitbull_ntg.dir/Test_TimeMachine.cpp.o
In file included from /usr/local/include/soci/into-type.h:13:0,
                 from /usr/local/include/soci/statement.h:11,
                 from /usr/local/include/soci/values.h:11,
                 from /usr/local/include/soci/std-tuple.h:11,
                 from
/home/kfeng/dev/pitbull/cpp/tst/ntg/Test_TimeMachine.cpp:4:
/usr/local/include/soci/exchange-traits.h: In instantiation of ‘struct
soci::details::exchange_traits<std::tuple<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, int, int, tm, tm, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int, int, int, int, int, int> >’:
/usr/local/include/soci/into.h:29:60:   required from
‘soci::details::into_type_ptr soci::into(T&) [with T =
std::tuple<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, int, int, tm, tm, int,
int, int, int, int, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int>; soci::details::into_type_ptr =
soci::details::type_ptr<soci::details::into_type_base>]’
/usr/local/include/soci/rowset.h:125:9:   required from
‘soci::details::rowset_impl<T>::rowset_impl(const
soci::details::prepare_temp_type&) [with T =
std::tuple<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, int, int, tm, tm, int,
int, int, int, int, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int>]’
/usr/local/include/soci/rowset.h:185:51:   required from
‘soci::rowset<T>::rowset(const soci::details::prepare_temp_type&)
[with T = std::tuple<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, int, int, tm, tm, int,
int, int, int, int, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int>]’
/home/kfeng/dev/pitbull/cpp/inc/io/Soci.hpp:357:47:   required from
‘size_t 
pitbull::io::SociPersistentResult<ROW_TUPLE>::queryByVectorStore_NoNulls(pitbull::io::SociSession&)
[with ROW_TUPLE = std::tuple<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, int, int, tm, tm, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int, int, int, int, int, int>; size_t =
long unsigned int]’
/home/kfeng/dev/pitbull/cpp/inc/time/../../src/time/TMGroup.cpp:50:2:
 required from ‘void
pitbull::time::TMGroup<T>::loadInstances(pitbull::io::SociSession&)
[with T = TM_Core]’
/home/kfeng/dev/pitbull/cpp/inc/time/../../src/time/TimeMachine.cpp:59:2:
  required from ‘pitbull::time::TMGroup<T>*
pitbull::time::TimeMachine<T>::loadInstances(long long unsigned int)
[with T = TM_Core]’
/home/kfeng/dev/pitbull/cpp/tst/ntg/Test_TimeMachine.cpp:168:63:
required from here
/usr/local/include/soci/exchange-traits.h:35:5: error: incomplete type
‘soci::details::exchange_traits<std::tuple<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>, int, int, tm, tm, int, int, int, int, int, int, int, int, int, int,
int, int, int, int, int, int, int, int, int, int, int, int> >’ used in
nested name specifier
make[2]: *** [tst/ntg/CMakeFiles/pitbull_ntg.dir/Test_TimeMachine.cpp.o] Error 1
make[1]: *** [tst/ntg/CMakeFiles/pitbull_ntg.dir/all] Error 2
make: *** [all] Error 2

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to