Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is_output_streamable doesn't compiled on Visual Studio if T==std::nullptr_t #18

Closed
wisk opened this issue May 22, 2016 · 0 comments
Closed
Labels
Milestone

Comments

@wisk
Copy link

wisk commented May 22, 2016

Hi,

It seems is_output_streamable<std::nullptr_t> cause an error on Visual Studio because std::cout << nullptr; is ambiguous according to cl compiler.

error C2593: 'operator <<' is ambiguous

To mitigate this issue, I just wrote a specialized template for this function:

template<>
struct is_output_streamable<std::nullptr_t>
{
  static const bool value = false;
}

But I don't know if this is the best fix, I found another solution here.

@sbeyer sbeyer added the bug label Feb 4, 2017
@sbeyer sbeyer added this to the 3.0 Release milestone Feb 4, 2017
@sbeyer sbeyer closed this as completed in a1f3648 Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants