remove warnings

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@421 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-05 13:17:47 +00:00
parent 56fe17d96e
commit 9087a105b3
2 changed files with 2 additions and 0 deletions

View file

@ -241,6 +241,7 @@ public:
if (capacity() < neededCapacity)
{
static std::less_equal<const E*> le;
(void) le;
assert(!(le(begin(), &*b) && le(&*b, end())));
reserve(neededCapacity);
}

View file

@ -225,6 +225,7 @@ public:
if (capacity() < neededCapacity)
{
static std::less_equal<const E*> le;
(void) le;
assert(!(le(begin(), &*b) && le(&*b, end()))); // no aliasing
reserve(neededCapacity);
}