assume c++11
clang didn't like static members in anonymous structures, gave them names WriteEvent template wouldn't resolve for temporary values without const decl in clang added a few missing headers added -fno-operator-names for xbyak compilation under gcc/clang
This commit is contained in:
@@ -30,7 +30,7 @@ Tracer* GetThreadTracer();
|
||||
|
||||
void WriteEvent(uint32_t event_type, size_t size = 0, const void* data = 0);
|
||||
|
||||
template<typename T> void WriteEvent(T& ev) {
|
||||
template<typename T> void WriteEvent(const T& ev) {
|
||||
if (sizeof(T) > 1) {
|
||||
alloy::tracing::WriteEvent(T::event_type, sizeof(T), &ev);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user