Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 948 vs 949 for /trunk/Source Code/Platform/Video/Headers/CommandBuffer.inl

Diff revisions: vs.
  @@ -36,8 +36,8 @@
36 36 namespace GFX {
37 37
38 38 template<typename T>
39 - inline void CommandBuffer::add(const T& command) {
40 - static_assert(std::is_base_of<Command, T>::value, "CommandBuffer error: Unknown command type!");
39 + inline typename std::enable_if<std::is_base_of<Command, T>::value, void>::type
40 + CommandBuffer::add(const T& command) {
41 41 _data.emplace_back(std::make_unique<T>(command));
42 42 }
43 43