mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Remove VC insecure warnings on header files.
This commit is contained in:
@@ -222,7 +222,7 @@ public:
|
||||
* \return bool indicating whether addresses are equal.
|
||||
*/
|
||||
bool operator==(const HWAddress &rhs) const {
|
||||
return std::equal(begin(), end(), rhs.begin());
|
||||
return std::equal(begin(), end(), rhs.buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -325,13 +325,16 @@ public:
|
||||
* But since some PDUs return a HWAddress<> by value, this function
|
||||
* can be used to avoid temporaries.
|
||||
*
|
||||
* \param iter The output iterator in which to store this address.
|
||||
* \param output The output iterator in which to store this address.
|
||||
* \return OutputIterator pointing to one-past the last position
|
||||
* written.
|
||||
*/
|
||||
template<typename OutputIterator>
|
||||
OutputIterator copy(OutputIterator iter) const {
|
||||
return std::copy(begin(), end(), iter);
|
||||
OutputIterator copy(OutputIterator output) const {
|
||||
for (const_iterator iter = begin(); iter != end(); ++iter) {
|
||||
*output++ = *iter;
|
||||
}
|
||||
return output;
|
||||
}
|
||||
private:
|
||||
template<typename OutputIterator>
|
||||
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
* \return bool indicating whether addresses are equal.
|
||||
*/
|
||||
bool operator==(const IPv6Address &rhs) const {
|
||||
return std::equal(begin(), end(), rhs.begin());
|
||||
return std::equal(begin(), end(), rhs.address);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -502,11 +502,12 @@ private:
|
||||
}
|
||||
else {
|
||||
payload_.big_buffer_ptr = new data_type[real_size_];
|
||||
std::copy(
|
||||
start,
|
||||
end,
|
||||
payload_.big_buffer_ptr
|
||||
);
|
||||
uint8_t* ptr = payload_.big_buffer_ptr;
|
||||
while (start < end) {
|
||||
*ptr = *start;
|
||||
++ptr;
|
||||
++start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user