Skip to content
Commit 2446649c authored by Howard Hinnant's avatar Howard Hinnant
Browse files

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
parent 7a6e2007
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment