private:
compile_units _m_units;
+ typedef dwarf_ref_maker<dwarf_edit, dwarf_edit> edit_ref_maker;
+
public:
class compile_units &compile_units ()
{
return compile_units ().add_unit ();
}
- public:
// Default constructor: an empty container, no CUs.
inline dwarf_edit ()
: _m_units ()
guard.clear ();
}
+ // We have to write this explicitly or it will do default-copying!
+ inline dwarf_edit (const dwarf_edit &dw,
+ edit_ref_maker t = edit_ref_maker (),
+ subr::guard<edit_ref_maker > guard
+ = subr::guard<edit_ref_maker > ())
+ : _m_units (dw.compile_units (), guard (t))
+ {
+ guard.clear ();
+ }
+
template<typename file>
inline bool operator== (const file &other) const
{