proper boost shared ptr assignment, re #10528