mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
Compilation issue in VS2017 #12
This commit is contained in:
parent
aefef6dce2
commit
21c08b636c
2 changed files with 7 additions and 7 deletions
|
@ -248,7 +248,7 @@ std::string PEMSign<Hasher>::evp_digest(
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long len = 0;
|
size_t len = 0;
|
||||||
|
|
||||||
if (EVP_DigestSignFinal(mdctx_ptr.get(), nullptr, &len) != 1) {
|
if (EVP_DigestSignFinal(mdctx_ptr.get(), nullptr, &len) != 1) {
|
||||||
ec = AlgorithmErrc::SigningErr;
|
ec = AlgorithmErrc::SigningErr;
|
||||||
|
|
|
@ -154,7 +154,7 @@ auto basic_string_view<CharT, Traits>::find_first_not_of(
|
||||||
for (size_type i = pos; i < len_; ++i)
|
for (size_type i = pos; i < len_; ++i)
|
||||||
{
|
{
|
||||||
auto p = traits_type::find(str, n, data_[i]);
|
auto p = traits_type::find(str, n, data_[i]);
|
||||||
if (not p) return i;
|
if (!p) return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return npos;
|
return npos;
|
||||||
|
@ -171,7 +171,7 @@ auto basic_string_view<CharT, Traits>::find_last_not_of(
|
||||||
|
|
||||||
do {
|
do {
|
||||||
for (size_type i = 0; i < n; ++i) {
|
for (size_type i = 0; i < n; ++i) {
|
||||||
if (not traits_type::eq(data_[pos], str[i])) return pos;
|
if (!traits_type::eq(data_[pos], str[i])) return pos;
|
||||||
}
|
}
|
||||||
} while (pos-- != 0);
|
} while (pos-- != 0);
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ auto basic_string_view<CharT, Traits>::find_first_not_of(
|
||||||
assert (pos < len_&& "Position must be within the bounds of the view");
|
assert (pos < len_&& "Position must be within the bounds of the view");
|
||||||
|
|
||||||
for (size_type i = pos; i < len_; ++i) {
|
for (size_type i = pos; i < len_; ++i) {
|
||||||
if (not traits_type::eq(data_[i], ch)) return i;
|
if (!traits_type::eq(data_[i], ch)) return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return npos;
|
return npos;
|
||||||
|
@ -200,7 +200,7 @@ auto basic_string_view<CharT, Traits>::find_last_not_of(
|
||||||
assert (pos < len_ && "Position must be within the bounds of the view");
|
assert (pos < len_ && "Position must be within the bounds of the view");
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (not traits_type::eq(data_[pos], ch)) return pos;
|
if (!traits_type::eq(data_[pos], ch)) return pos;
|
||||||
} while (pos-- != 0);
|
} while (pos-- != 0);
|
||||||
|
|
||||||
return npos;
|
return npos;
|
||||||
|
@ -217,7 +217,7 @@ bool operator== (basic_string_view<CharT, Traits> a,
|
||||||
using size_type = typename basic_string_view<CharT, Traits>::size_type;
|
using size_type = typename basic_string_view<CharT, Traits>::size_type;
|
||||||
|
|
||||||
for (size_type i = 0; i < a.length(); ++i) {
|
for (size_type i = 0; i < a.length(); ++i) {
|
||||||
if (not traits_type::eq(a[i], b[i])) return false;
|
if (!traits_type::eq(a[i], b[i])) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -227,7 +227,7 @@ template <typename CharT, typename Traits>
|
||||||
bool operator!= (basic_string_view<CharT, Traits> a,
|
bool operator!= (basic_string_view<CharT, Traits> a,
|
||||||
basic_string_view<CharT, Traits> b) noexcept
|
basic_string_view<CharT, Traits> b) noexcept
|
||||||
{
|
{
|
||||||
return not ( a == b );
|
return !( a == b );
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename CharT, typename Traits>
|
template <typename CharT, typename Traits>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue