Skip to content

Conversation

@hostilefork
Copy link
Contributor

The code says:

// In C++11 UNUSED(x) is explicitly provided

But that isn't true. nullptr is explicitly provided, however, in C++11.

What is true is that there are a bunch of codebases that define this exact macro somewhere. But it should not be necessary to write it conditionally for MS compilers.

In a technical sense, the name USE may be better. The reason is because UNUSED might end up being a lie--there's nothing stopping one from later adding a reference to the so-called UNUSED thing, no error will be caused.

sorenhein added a commit that referenced this pull request Nov 26, 2014
Move UNUSED out of C++11-dependent #ifdef
@sorenhein sorenhein merged commit a30b40f into dds-bridge:develop Nov 26, 2014
@hostilefork hostilefork deleted the better-unused branch November 28, 2014 13:17
sorenhein added a commit that referenced this pull request Jan 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants