[cfe-commits] [libcxx] r173172 - in /libcxx/trunk: include/locale src/string.cpp

Joerg Sonnenberger joerg at britannica.bec.de
Tue Jan 22 12:22:38 PST 2013


On Tue, Jan 22, 2013 at 05:26:09PM -0000, Howard Hinnant wrote:
> Author: hhinnant
> Date: Tue Jan 22 11:26:08 2013
> New Revision: 173172
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=173172&view=rev
> Log:
> Saleem Abdulrasool: If errno is defined as volatile int, the qualifier differences can cause
> template typename deductions on swap<> (used in string.cpp).

Why are you using swap<> in first place? errno is either an integer or
lvalue of int type and a plain assignment should be exactly what is
desired here?

Joerg



More information about the cfe-commits mailing list