mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
Remove names of unreferenced parameters. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
struct Fun
|
||||
{
|
||||
template<typename T, typename U>
|
||||
void operator()(T && t, U && u) const
|
||||
void operator()(T &&, U &&) const
|
||||
{
|
||||
static_assert(std::is_same<U, int &>::value, "");
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@
|
||||
struct DummyUnaryFunction
|
||||
{
|
||||
template <typename S>
|
||||
int operator()(S const & s) const { return 0; }
|
||||
int operator()(S const &) const { return 0; }
|
||||
};
|
||||
|
||||
struct BadUnaryFunction
|
||||
@@ -39,7 +39,7 @@ struct BadUnaryFunction
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
int main()
|
||||
{
|
||||
// Check that BadUnaryFunction::operator()(S const &) is not
|
||||
// instantiated when checking if BadUnaryFunction is a nested bind
|
||||
|
Reference in New Issue
Block a user