Skip to content
Snippets Groups Projects
Commit aa4d2c5a authored by Serge Lamikhov-Center's avatar Serge Lamikhov-Center
Browse files

Substitute memcpy() by std::copy()

parent 655f8642
Branches
No related tags found
No related merge requests found
......@@ -9,6 +9,68 @@
"iostream": "cpp",
"streambuf": "cpp",
"*.tcc": "cpp",
"regex": "cpp"
"regex": "cpp",
"algorithm": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"bitset": "cpp",
"cassert": "cpp",
"cctype": "cpp",
"cfloat": "cpp",
"chrono": "cpp",
"ciso646": "cpp",
"climits": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"complex": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"locale": "cpp",
"new": "cpp",
"ostream": "cpp",
"queue": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"variant": "cpp"
}
}
\ No newline at end of file
......@@ -402,9 +402,9 @@ class symbol_section_accessor_template
// Swap the symbols
T tmp;
memcpy(&tmp, p1, size);
memcpy(p1, p2, size);
memcpy(p2, &tmp, size);
std::copy(p1, p1 + 1, &tmp);
std::copy(p2, p2 + 1, p1);
std::copy(&tmp, &tmp + 1, p2);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment