[patch] libcxx src win32
Marshall Clow
mclow.lists at gmail.com
Thu Aug 22 18:19:03 PDT 2013
On Aug 22, 2013, at 5:18 PM, G M <gmisocpp at gmail.com> wrote:
> Hello Everyone, in particular Reid.
>
> This patch is a subset of a previous patch I sent. You asked to separate that patch out to make it easier for you to review.
>
> This is the non contentious part of that patch which you described as "obvious goodness".
This bit:
namespace { // Private
struct free_deleter {
inline void operator()(char* p) { free(p); }
};
}
I would write as:
struct __free_deleter {
inline void operator() (char* p) const noexcept { free(p); }
};
i.e, ditch the namespace, prepend the name with __ and, mark const and noexcept.
-- Marshall
Marshall Clow Idio Software <mailto:mclow.lists at gmail.com>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
More information about the cfe-commits
mailing list