monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: comments on .sqlite3.binary branch


From: Bruce Stephens
Subject: [Monotone-devel] Re: comments on .sqlite3.binary branch
Date: Wed, 18 Jan 2006 13:06:57 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Nathaniel Smith <address@hidden> writes:

[...]

> (Does inheriting from std::string to add a public bool attribute seem
> a little odd to anyone else?  Obviously it works, but I would have
> used a struct { std::string; bool; } instead.)

Depends how often you want to use them in std::stringy contexts, I
guess.  If the usage is basically a std::string, and you use the bool
only for some specific purposes, then subclassing seems like the more
convenient approach.

[...]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]