
28 Apr
2006
28 Apr
'06
12:43 p.m.
Hi Alexander, My answer is quite short, but I discovered a major flaw with the approach you propose, and it renders most of it unimplementable. Please see below:
May be it will be interesting to compare another approach to the proposed Property Tree Library.
class basic_registry_proxy { public: ... template<class T> virtual bool get(const path, T&) const = 0; template<class T> virtual bool set(const path, T&) = 0;
No can do. Virtual functions cannot be templates! This rules out automatic type conversions. It would have to rely on something else to provide it. Best regards, Marcin