fix(deprecated): guard from bind and *_function
Deprecated since C++11, removed in C++17.
This commit is contained in:
parent
09a26fdc62
commit
b4e89d8f51
3 changed files with 25 additions and 0 deletions
|
|
@ -108,7 +108,12 @@ public:
|
|||
if (is) {
|
||||
virus.resize(bits.size());
|
||||
std::transform(bits.begin(), bits.end(), virus.begin(),
|
||||
#if __cplusplus >= 201103L
|
||||
std::bind(std::equal_to<char>(), std::placeholders::_1, '1'));
|
||||
#else
|
||||
// Deprecated since C++11.
|
||||
std::bind2nd(std::equal_to<char>(), '1'));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue