Issue 18 in mockitopp: VS 2010 not working

5 views
Skip to first unread message

mock...@googlecode.com

unread,
Nov 6, 2014, 5:12:21 AM11/6/14
to mockit...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 18 by reinhold...@degenfellner.com: VS 2010 not working
https://code.google.com/p/mockitopp/issues/detail?id=18

it seems that they changed the member function pointer internals

compiler error:
C:\dev\st_trunk\OpenAgent\BuildUtilities\Cpp\include\mockitopp/detail/stubbing/proxy_vfunction.hpp(142):
error
C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall
Communicator::CRequestHandler::* )(Communicator::CCommunicatorImpl &)'
to 'void *(__thiscall mockitopp::detail::proxy_vfunction_factory<M>::*
)(void)'
1> with
1> [
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]
1> Pointers to members have different representations; cannot cast
between them
1>
C:\dev\st_trunk\OpenAgent\BuildUtilities\Cpp\include\mockitopp/detail/stubbing/proxy_vfunction.hpp(140) :
while compiling class template member function 'void
*mockitopp::detail::proxy_vfunction_factory<M>::get(M)'
1> with
1> [
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]
1>
C:\dev\st_trunk\OpenAgent\BuildUtilities\Cpp\include\mockitopp/detail/stubbing/dynamic_object.hpp(127) :
see reference to class template
instantiation 'mockitopp::detail::proxy_vfunction_factory<M>' being compiled
1> with
1> [
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]
1>
c:\dev\st_trunk\openagent\buildutilities\cpp\include\mockitopp\mock_object.hpp(36) :
see reference to function template
instantiation 'mockitopp::detail::dynamic_vfunction<T>
&mockitopp::detail::dynamic_object::define_function<M>(M)' being compiled
1> with
1> [
1> T=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &),
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]
1>
c:\dev\st_trunk\openagent\buildutilities\cpp\include\mockitopp\mock_object.hpp(40) :
see reference to function template
instantiation 'mockitopp::detail::dynamic_vfunction<T>
&mockitopp::mock_object<Communicator::CRequestHandler>::expect<M>(M)' being
compiled
1> with
1> [
1> T=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &),
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]
1> mockArgumentFactory.cpp(26) : see reference to function
template instantiation 'mockitopp::detail::dynamic_vfunction<T>
&mockitopp::mock_object<Communicator::CRequestHandler>::operator
()<void(__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)>(M)' being compiled
1> with
1> [
1> T=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &),
1> M=void (__thiscall Communicator::CRequestHandler::*
)(Communicator::CCommunicatorImpl &)
1> ]

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages