Open GoogleCodeExporter opened 8 years ago
such interface will be OK
RCF_METHOD_R1(int, RCF_AddAlarmCase, const ALARMCASE&);
it seems like if interface has out para and const para&, there will have Input
data
format error.
Original comment by lor...@126.com
on 1 Feb 2010 at 8:51
Thanks for the detailed error report - the information was very helpful.
I've done some digging and it turns out that this will only happen when Visual
C++ 6
is used with Boost 1.33. Visual C++ 6 with Boost 1.34 or later is fine, and
other
compilers with boost 1.33 are fine.
I will update RCF 1.2 to fix this. In the mean time, with RCF 1.1, if you
locate
this code in Marshal.hpp:919
template<typename T>
struct IsOutParameter
{
typedef typename
boost::mpl::and_<
boost::is_reference<T>,
boost::mpl::not_<
boost::is_const<
typename boost::remove_reference<T>::type
>
>
>::type type;
enum { value = type::value };
};
, and change it to:
template<typename T>
struct IsOutParameter
{
typedef typename
boost::mpl::and_<
IsReference<T>,
boost::mpl::not_<
boost::is_const<
typename RemoveReference<T>::type
>
>
>::type type;
enum { value = type::value };
};
, it should work better.
Original comment by jarl.lin...@gmail.com
on 5 Feb 2010 at 5:02
Original comment by jarl.lin...@gmail.com
on 14 Feb 2010 at 9:16
Original comment by jarl.lin...@gmail.com
on 16 Feb 2010 at 2:38
Original issue reported on code.google.com by
lor...@126.com
on 1 Feb 2010 at 7:31Attachments: