Skip to content

Commit

Permalink
check if _SECURE_SCL is defined not equal to 0
Browse files Browse the repository at this point in the history
torsten48 authored and vitaut committed Jan 9, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cef1e43 commit cd0b3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
@@ -324,7 +324,7 @@ inline typename Container::value_type* get_data(Container& c) {
return c.data();
}

#ifdef _SECURE_SCL
#if defined(_SECURE_SCL) && _SECURE_SCL
// Make a checked iterator to avoid MSVC warnings.
template <typename T> using checked_ptr = stdext::checked_array_iterator<T*>;
template <typename T> checked_ptr<T> make_checked(T* p, std::size_t size) {

0 comments on commit cd0b3f9

Please sign in to comment.