#3857 closed Bugs (invalid)
c4512 warning using signals2 with boost 1.41 on VS2005
Reported by: | Owned by: | Frank Mori Hess | |
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | signals2 |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | c4512, signals2 | Cc: |
Description
I am using the signals2 library, and I get the following warnings with VS2005:
Warning 1 warning C4512: 'boost::signals2::detail::signal1_impl<R,T1,Combiner,Group,GroupCompare,SlotFunction,ExtendedSlotFunction,Mutex>::slot_invoker' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\signal_template.hpp 358
Warning 2 warning C4512: 'boost::signals2::detail::slot_call_iterator_cache<ResultType,Function>' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\slot_call_iterator.hpp 44
Warning 3 warning C4512: 'boost::signals2::detail::signal1_impl<R,T1,Combiner,Group,GroupCompare,SlotFunction,ExtendedSlotFunction,Mutex>::invocation_janitor' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\signals2\detail\signal_template.hpp 412
Warning 4 warning C4512: 'boost::function_output_iterator<UnaryFunction>::output_proxy' : assignment operator could not be generated c:\boost\boost_1_41_0\boost\function_output_iterator.hpp 40
I have my warning level set to 4.
Change History (3)
comment:1 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 11 years ago
It's two years and 7 versions later, and I'm still encountering this guys problem.
Good work Boost.
comment:3 by , 10 years ago
Same here. Still encountering these.
Turning the warning level down will silence them! Hope this helps.
Your compiler is generating spurious warnings. Those classes (excluding the last one which is not part of signals2 and I don't know about) don't need assignment operators. Feel free to open another ticket with a patch that silences the warnings if they bother you (perhaps by declaring private assignment operators in the classes?).