![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested manip.cpp: In function `mysqlpp::SQLQueryParms& mysqlpp: perator<<(mysqlpp::quote_only_type2, mysqlpp::SQLString&)':manip.cpp:308: error: conversion from `stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__char_wrapper<char>, stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char, stlp_std::char_traits<char>, stlp_std::allocator<char> >, |
|
Should mysql++ team make a patch? |
#3
| |||
| |||
|
|
dengxy (AT) cse (DOT) buaa.edu.cn wrote: stlp_priv::__on_left>' to non-scalar type `mysqlpp::SQLString' requested manip.cpp: In function `mysqlpp::SQLQueryParms& mysqlpp: perator<<(mysqlpp::quote_only_type2, mysqlpp::SQLString&)':manip.cpp:308: error: conversion from `stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__char_wrapper<char>, stlp_priv::__bstr_sum<char, stlp_std::char_traits<char>, stlp_std::allocator<char>, stlp_priv::__bstr_wrapper<char, stlp_std::char_traits<char>, stlp_std::allocator<char> >, ...spam, spam, spam, spam....Ain't STL error messages lovely? Should mysql++ team make a patch? No, you should send your patch to the list, and let me decide whether to apply it or not. OK. Since I cannot confirm which side should alter(STLport or mysql++), |
#4
| |||
| |||
|
|
Thanks for this report. It simply show that template expressions for string concatenation has some drawback. In STLport config file (stlport/stm_user_config.h or stlport/stl/user_config.h depending on your STLport version) you must say _STLP_NO_TEMPLATE_EXPRESSION. I will try to see if we can do something for that. |
#5
| |||
| |||
|
|
and I found the flag _STLP_DONT_USE_TEMPLATE_EXPRESSION at stlport/stl/config/user_config.h, and I uncomment this line and rebuilt STLport and then compile mysql++ linking with it, and this time everything goes fine. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
By this patch applied, STLport can compile mysql++ without problem, too! However, it is you who decide whether to use this patch ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |