[PATCH] Code cleanup in <locale>
Howard Hinnant
hhinnant at apple.com
Mon Nov 4 09:07:38 PST 2013
On Nov 4, 2013, at 11:35 AM, Marshall Clow <mclow.lists at gmail.com> wrote:
> While looking into http://llvm.org/bugs/show_bug.cgi?id=17782, I noticed that there was a chunk of code in <locale> for dealing with floating point numbers.
> This code was duplicated three times, once for float, double, and long double. Hoist this into a template, and make the original call sites use the template.
>
> No functionality change intended.
I'm fine with the intent of this change. But the client gets to do this:
#define do_get_floating_point
#include <locale>
:-)
Howard
More information about the cfe-commits
mailing list