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

Compilation fails with cl.exe /Zc:wchar_t- #206

Closed
dandrestor opened this issue Mar 22, 2019 · 2 comments
Closed

Compilation fails with cl.exe /Zc:wchar_t- #206

dandrestor opened this issue Mar 22, 2019 · 2 comments

Comments

@dandrestor
Copy link

Description

When using the Visual Studio compiler option /Zc:wchar_t-, the compiler will replace the type wchar_t with a typedef. Thus the following error is generated during compilation:

doctest.h(2587): error C2766: explicit specialization; 'const char *doctest::detail::type_to_string<wchar_t>(void)' has already been defined
doctest.h(2585): note: see previous definition of 'type_to_string'
  • doctest version: v2.2.3
  • Operating System: Windows 10
  • Compiler+version: Visual Studio 14.0
@onqtam
Copy link
Member

onqtam commented Mar 22, 2019

Thanks for reporting this!

Seems that I can check against a preprocessor identifier (some more info)

This should be fixed in version 2.3 when I release it. For now you can uncomment one of those 2 lines.

@onqtam onqtam closed this as completed in e42280c Mar 23, 2019
@dandrestor
Copy link
Author

Awesome, thanks.

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

No branches or pull requests

2 participants