May
9
comment cannot convert between nested templated types
Thanks. it was a very helpful discussion.
May
9
comment cannot convert between nested templated types
for the 1st suggestion, seems I can't do that coz I cant create a MH_ANNOUCE with an argument(this). I updated the above like
May
9
comment cannot convert between nested templated types
I implemented your solution in codepad.org/HM0LE9pC . can you please have look to see if it is ok? (I left a small question for you inside the code) thanks a lot.
May
8
revised cannot convert between nested templated types
deleted 25 characters in body
May
8
comment cannot convert between nested templated types
thanks. I am not able to use python at this moment. I actually tried to copy this one from a java source. I now understand the problem, thanks to your simplification. any suggestion to alter my code?
May
8
asked cannot convert between nested templated types
May
5
comment initialize std::map value when its key does not exist
Marcelo +1 for the reference. The solution is also correct. many thanks
May
5
accepted initialize std::map value when its key does not exist
May
5
comment initialize std::map value when its key does not exist
It actually helped just fine :) thanks
May
5
comment initialize std::map value when its key does not exist
Andy, thanks for the answer. I guess the only solution for C++03 is the one you just mentioned.
May
5
asked initialize std::map value when its key does not exist
May
4
comment initialized pointers are not passed through constructor
@Bill I am sorry, you are right. Johannes S: is also right. I tried to make a compilable sample and it actually worked. Now it made it more interesting. Now your first question may make more sense. why the way objects(like Broker) are created makes a difference?
May
4
revised initialized pointers are not passed through constructor
added 124 characters in body
May
4
revised initialized pointers are not passed through constructor
deleted 12 characters in body
May
4
comment initialized pointers are not passed through constructor
server is created and initialized within Broker . Broker is created in a complex process.
May
4
asked initialized pointers are not passed through constructor
May
2
comment Passing data between classes with function pointers
very nicely put.
Apr
26
accepted Gson can't deserialize inherited class?
Apr
26
comment passing a string variable to boost::ASIO reader/handlers sause seg fault
oh, but the first async_read is not asio::async_read. in the 2 asio::async_reads I used char[] and vector<char> . I passed string to my own templated async_read to send it over the hops to the final handler, and then fill it up using vector<char>inbound_data_ . inbound_data_ actually gets data successfully(i just double checked). The problem is when I create a string out of this inbound_data and assign it to my original string, the program crash. Any other operation on the original string crashes too(in the last handler)
Apr
26
comment passing a string variable to boost::ASIO reader/handlers sause seg fault
joachim pileborg, thanks, should I pass boost::buffer variable right from the start?
1 2 3 4 5