commit | 2446649c1e3fca16d7524d75260d3d588c36e671 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <[email protected]> | Tue Jan 22 17:26:08 2013 |
committer | Howard Hinnant <[email protected]> | Tue Jan 22 17:26:08 2013 |
tree | 06ad58b2d9cfbb3ba64001d5c395935065f44570 | |
parent | 7a6e20070dc5e3a1f1079619e9429f0c288f9b32 [diff] |
Saleem Abdulrasool: If errno is defined as volatile int, the qualifier differences can cause template typename deductions on swap<> (used in string.cpp). Use decltype(errno) to replicate the type and qualifier information for holding the errno value. Because errno is expected to be assignable, there is no need to use typename std::remove_const<decltype(errno)>::type to hold the value. llvm-svn: 173172