Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the macro RAPIDJSON_DEFAULT_ALLOCATOR to be used in any namespace
`RAPIDJSON_DEFAULT_ALLOCATOR` uses names in the namespace `RAPIDJSON_NAMESPACE`. Replace this with a name starting in the global namespace.
- Loading branch information
9965ab3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this cause this error on macOS?
9965ab3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lelit Sorry, maybe "yes". It may cause that error.
This is necessary to use
RAPIDJSON_DEFAULT_ALLOCATOR
outsideRAPIDJSON_NAMESPACE
.I found a similar issue at CMU-Perceptual-Computing-Lab/openpose#677 and BVLC/caffe#6679. It may be able to help you.
If
-std=c++11
could be added here, it might solve the problem.9965ab3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, I will try ASAP!
9965ab3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That solved the issue indeed, thanks again!
9965ab3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad I could be of service. Thanks for the report!