Improve ChunkFile.h:
- Add support for std::set and std:pair. - Switch from std::is_pod to std::is_trivially_copyable, to allow for types that have constructors but trivial copy constructors. Easy, except there are three different nonstandard versions of it required on different platforms, in addition to the standard one.
This commit is contained in:
1 parent
0f061e4e7c
commit
4c7bbd96e4
2 files changed
+54
-11
No files matched your search
@@ -39,13 +39,6 @@ struct SQueuedEvent
|
||||
}
|
||||
};
|
||||
|
||||
// Hacks for ChunkFile to accept SQueuedEvent as POD
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct is_pod<SQueuedEvent> : std::true_type {};
|
||||
}
|
||||
|
||||
// Important to remember that this class is for /dev/usb/oh1/57e/305 ONLY
|
||||
// /dev/usb/oh1 -> internal usb bus
|
||||
// 57e/305 -> VendorID/ProductID of device on usb bus
|
||||
|
||||
Reference in new issue
Block a user