Re: Application crash but when I swap lines it works.



On 03/12/2012 04:55 PM, Krzesimir Nowak wrote:
W dniu 12 marca 2012 16:14 użytkownik Łukasz Gąsiorek
<lukaszgpl gmail com>  napisał:
Hi!
Code is here http://pastie.org/3578062
Look at the lines 80, 81, 82 and 93.
When I swap lines 81 and 82 app works. What is wrong?


Just guessing, but I don't think passing a boost::shared_ptr by const reference is a good idea. Just pass it by value.

Oscar


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]