Boost logo

Boost :

From: Marcin Kalicinski (kalita_at_[hidden])
Date: 2006-04-28 08:43:03


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk