[Bug 897] New: Creating a Typekit with BoostArrayTypeInfo fails to compile

http://bugs.orocos.org/show_bug.cgi?id=897

Summary: Creating a Typekit with BoostArrayTypeInfo fails to
compile
Product: Toolchain
Version: 2.4
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: RTT
AssignedTo: orocos-dev [..] ...
ReportedBy: ruben [dot] smits [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi all,

I'm trying to create a typekit for a boost::array:

but it fails with the errors below,could it be that the
rtt/types/BoostArrayTypeInfo.hpp is missing the composePropertyBag function? Or
do I have to provide an implementation for this myself?

/home/intermodalics/ros/orocos_toolchain_ros/rtt/install/include/rtt/types/BoostArrayTypeInfo.hpp:
In member function ‘virtual bool RTT::types::BoostArrayTypeInfo<T,
has_ostream>::composeTypeImpl(const RTT::PropertyBag&, typename
RTT::internal::AssignableDataSource<T>::reference_t) const’:
/home/intermodalics/ros/orocos_toolchain_ros/rtt/install/include/rtt/types/BoostArrayTypeInfo.hpp:138:55:
error: there are no arguments to ‘composePropertyBag’ that depend on a template
parameter, so a declaration of ‘composePropertyBag’ must be available
/home/intermodalics/ros/orocos_toolchain_ros/rtt/install/include/rtt/types/BoostArrayTypeInfo.hpp:138:55:
note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the
use of an undeclared name is deprecated)
/home/intermodalics/ros/orocos_toolchain_ros/rtt/install/include/rtt/types/BoostArrayTypeInfo.hpp:
In member function ‘bool RTT::types::BoostArrayTypeInfo<T,
has_ostream>::composeTypeImpl(const RTT::PropertyBag&, typename
RTT::internal::AssignableDataSource<T>::reference_t) const [with T =
boost::array<float, 7ul>, bool has_ostream = false, typename
RTT::internal::AssignableDataSource<T>::reference_t = boost::array<float,
7ul>&]’:
/home/intermodalics/ros/kuka_robot_hardware/lwr_fri/lwr_fri-typekit.cpp:28:1:
instantiated from here
/home/intermodalics/ros/orocos_toolchain_ros/rtt/install/include/rtt/types/BoostArrayTypeInfo.hpp:138:17:
error: ‘composePropertyBag’ was not declared in this scope
make[3]: *** [CMakeFiles/lwr_fri_typekit.dir/lwr_fri-typekit.cpp.o] Error 1

-- Ruben

--
Configure bugmail: http://bugs.orocos.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

Ruben Smits's picture

[Bug 897] Creating a Typekit with BoostArrayTypeInfo fails to co

http://bugs.orocos.org/show_bug.cgi?id=897

--- Comment #1 from Ruben Smits <ruben [dot] smits [..] ...> 2011-08-30 14:35:25 CEST ---
Created attachment 730
--> http://bugs.orocos.org/attachment.cgi?id=730
adds missing includes

Apparently some includes were missing, attached patch resolves the issue