<limits> from STL is not required

This commit is contained in:
Pavel Kirienko
2014-05-05 15:51:49 +04:00
parent 1a9e1d8202
commit 08cea4aacd
11 changed files with 162 additions and 22 deletions
+1 -2
View File
@@ -6,7 +6,6 @@
#include <uavcan/transport/can_io.hpp>
#include <uavcan/debug.hpp>
#include <cassert>
#include <limits>
namespace uavcan
{
@@ -100,7 +99,7 @@ CanTxQueue::~CanTxQueue()
void CanTxQueue::registerRejectedFrame()
{
if (rejected_frames_cnt_ < std::numeric_limits<uint32_t>::max())
if (rejected_frames_cnt_ < NumericTraits<uint32_t>::max())
{
rejected_frames_cnt_++;
}