forked from organicmaps/organicmaps
[alohalytics] Fixed build error on some linux machines.
This commit is contained in:
parent
040745ea5b
commit
3d0d876b4e
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ class Location {
|
|||
private:
|
||||
template <typename T>
|
||||
static inline void AppendToStringAsBinary(std::string & str, const T & value, size_t bytes = sizeof(T)) {
|
||||
static_assert(std::is_trivially_copyable<T>::value, "This type is not supported.");
|
||||
// TODO(AlexZ): Uncomment when gcc and clang will correctly support is_trivially_copyable.
|
||||
//static_assert(std::is_trivially_copyable<T>::value, "This type is not supported.");
|
||||
str.append(reinterpret_cast<const char *>(&value), bytes);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue