2

これがブースト信号の定義です

    boost::signal<void (const MetaData&)> sigChangeTrackMD;

これは、名前空間 GSTREAMER で関数 changeTrack を呼び出すことになっています

void changeTrack(const MetaData& md){.....}

信号接続

sigChangeTrackMD.connect(GSTREAMER::changeTrack);

しかし、次のエラーが発生します。宣言が間違っていますか?

Engine/GSTAdaptor.cpp:21:44: error: no match for call to '(boost::signal<void(const MetaData&)>) (<unresolved overloaded function type>)'
/usr/include/boost/signal.hpp:329:9: note: candidates are:
/usr/include/boost/signals/signal_template.hpp:330:1: note: boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::operator()(T1) [with R = void, T1 = const MetaData&, Combiner = boost::last_value<void>, Group = int, GroupCompare = std::less<int>, SlotFunction = boost::function<void(const MetaData&)>, boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type = void]
/usr/include/boost/signals/signal_template.hpp:330:1: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const MetaData&'
/usr/include/boost/signals/signal_template.hpp:370:1: note: boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::operator()(T1) const [with R = void, T1 = const MetaData&, Combiner = boost::last_value<void>, Group = int, GroupCompare = std::less<int>, SlotFunction = boost::function<void(const MetaData&)>, boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type = void]
/usr/include/boost/signals/signal_template.hpp:370:1: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const MetaData&'
Engine/GSTAdaptor.cpp:22:42: error: no match for call to '(boost::signal<void(std::basic_string<char>&)>) (<unresolved overloaded function type>)'
/usr/include/boost/signal.hpp:329:9: note: candidates are:
/usr/include/boost/signals/signal_template.hpp:330:1: note: boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::operator()(T1) [with R = void, T1 = std::basic_string<char>&, Combiner = boost::last_value<void>, Group = int, GroupCompare = std::less<int>, SlotFunction = boost::function<void(std::basic_string<char>&)>, boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type = void]
/usr/include/boost/signals/signal_template.hpp:330:1: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_string<char>&'
/usr/include/boost/signals/signal_template.hpp:370:1: note: boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::operator()(T1) const [with R = void, T1 = std::basic_string<char>&, Combiner = boost::last_value<void>, Group = int, GroupCompare = std::less<int>, SlotFunction = boost::function<void(std::basic_string<char>&)>, boost::signal1<R, T1, Combiner, Group, GroupCompare, SlotFunction>::result_type = void]
/usr/include/boost/signals/signal_template.hpp:370:1: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_string<char>&'
make: *** [GSTAdaptor.o] Error 1
4

0 に答える 0