5 FRIEND_SERIALIZE(shared_str_b
)
9 std::string
&operator*() { return s
; }
10 const std::string
&operator*() const { return s
; }
12 shared_str_b(const std::string
&p
) : s(p
) { }
16 FRIEND_SERIALIZE(shared_str
)
18 boost::shared_ptr
<shared_str_b
> p
;
20 shared_str() : p(new shared_str_b()) { }
21 shared_str(const shared_str
&v
) : p(v
.p
) { }
22 shared_str(const std::string
&p
) : p(new shared_str_b(p
)) { }
24 std::string
&operator*() { return **p
; }
25 const std::string
&operator*() const { return **p
; }
26 std::string
*operator->() { return &(**this); }
27 const std::string
*operator->() const { return &(**this); }