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

use "std" namespace for "sprintf" #1541

Merged
merged 1 commit into from
Feb 17, 2019
Merged

Conversation

girtsf
Copy link
Contributor

@girtsf girtsf commented Feb 13, 2019

Some compilers don't export C compatibility functions in ::. Using
std::sprintf should work for those (and all other compilers).

Reference: https://en.cppreference.com/w/cpp/header#C_compatibility_headers

Some compilers don't export C compatibility functions in `::`. Using
`std::sprintf` should work for those (and all other compilers).

Reference: https://en.cppreference.com/w/cpp/header#C_compatibility_headers
@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #1541 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #1541   +/-   ##
======================================
  Coverage    80.6%   80.6%           
======================================
  Files         121     121           
  Lines        3386    3386           
======================================
  Hits         2729    2729           
  Misses        657     657

1 similar comment
@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #1541 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #1541   +/-   ##
======================================
  Coverage    80.6%   80.6%           
======================================
  Files         121     121           
  Lines        3386    3386           
======================================
  Hits         2729    2729           
  Misses        657     657

@horenmar
Copy link
Member

Thanks. We generally make an attempt at consistently using the std:: prefix (and the <cfoo> form of C headers), but it sometimes creeps in. The only platform I know of that actually cares about the difference is QNX and it is kinda hard to get a CI using it.

@horenmar horenmar merged commit 711d750 into catchorg:master Feb 17, 2019
@girtsf
Copy link
Contributor Author

girtsf commented Feb 19, 2019

Thanks, @horenmar!

What we are using isn't QNX, but isn't too far off. It's something that starts with "vx" and ends with "works". :)

Catch2 works on it with two minor fixes:

  1. this pull request
  2. use ::std for tolower Clara#86 (just fixed it so that it now passes the appveyor windows builds too)

Thanks for the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants