hkaiser changed the topic of #ste||ar to: The topic is 'STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log: http://irclog.cct.lsu.edu/
hkaiser has quit [Quit: bye]
sameer9994 has joined #ste||ar
sameer9994 has quit [Ping timeout: 260 seconds]
<Yorlik> I'm currently banging my head at this:
<Yorlik> --> handle_message<E, omt_code::OMT_TEST>( e, msgPtr );
<Yorlik> The code is used inside the following template:
<Yorlik> which is giving me this error:
<Yorlik> --> error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'agns::gameobject::handle_message<E,agns::gameobject::OMT_TEST>'
<Yorlik> -->template <typename E> //
<Yorlik> --> void handle_mailbox( E& e ) {/* ... */}
<Yorlik> The code compiles, when I remove "e" from the function parameters and the prototype of the functors function call operator (handle_message is a functor, so I can use partial template specialization).
<Yorlik> handle message is defined like this:
<Yorlik> --> template <typename E, omt_code MC>
<Yorlik> --> struct handle_message;
<Yorlik> --> template <typename E>
<Yorlik> --> struct handle_message<E, omt_code::OMT_TEST> {
<Yorlik> --> inline void operator( )( E& e, void* mPtr ) { /* ... */ }
<Yorlik> -->};
<Yorlik> Ideas how to further debug this? E should be fully defined at this point, and it doesn't complaine about a sizeof(E). I feel a bit clueless here.
<Yorlik> I tried to reduce the problem and am getting this:
<Yorlik> template <typename E>
<Yorlik> fake_handler( e ); // error C2082: redefinition of formal parameter 'e'
<Yorlik> void fake_handle_mailbox( E e ) {
<Yorlik> }
<Yorlik> template <typename E>
<Yorlik> struct fake_handler {
<Yorlik> void operator( )( E e ) { /* ... */ }
<Yorlik> };
<Yorlik> How would "e" be redefined when I'm just calling a functor?
<Yorlik> Time for a break - BBL ...
nikunj has quit [Ping timeout: 240 seconds]
nikunj has joined #ste||ar
<Yorlik> Solved it
<Yorlik> I was calling () on the class which triggered the constructor and not on an instance for the operator() ... :D
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Ping timeout: 260 seconds]
nikunj has joined #ste||ar
nikunj97 has joined #ste||ar
nikunj has quit [Ping timeout: 265 seconds]
nikunj97 has quit [Ping timeout: 255 seconds]
hkaiser has joined #ste||ar
<Yorlik> Had a funny bug today - I wanted to have the initialization output of my Lua VMS synchronized and put a lock into the init() method, but the output was still scrambled between the VMs - what had happened? I had put a static mutex into the VMs - but forgotten that the VMs were thread_local - so I had one mutex per thread ... :D
nikunj97 has joined #ste||ar
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]
nikunj has joined #ste||ar
nikunj has quit [Read error: Connection reset by peer]