We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb49866 commit 06dee56Copy full SHA for 06dee56
include/json/allocator.h
@@ -38,7 +38,7 @@ template <typename T> class SecureAllocator {
38
* The pointer argument is tagged as "volatile" to prevent the
39
* compiler optimizing out this critical step.
40
*/
41
- void deallocate(pointer p, size_type n) {
+ void deallocate(volatile pointer p, size_type n) {
42
std::memset(p, 0, n * sizeof(T));
43
// free using "global operator delete"
44
::operator delete(p);
0 commit comments