[bug] Compiling with leak-hunter leads to error

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

[bug] Compiling with leak-hunter leads to error

Post by gerdb »

hi, when i compile with leakhunter,

i get compile Error in irrArray saying swap<T,T> is not a member of irr::core even with irrMath.h Header and giving me alternative std::_exception

using LinuxMint64 gcc 4.6.3 with codeblocks

EDIT: removing core:: or typing swap<T,T>() makes no difference

Code: Select all

 
    void swap(array<T, TAlloc>& other)
    {
--> StartError  core::swap(data, other.data);
        core::swap(allocated, other.allocated);
        core::swap(used, other.used);
        core::swap(allocator, other.allocator); // memory is still released by the same allocator used for allocation
        eAllocStrategy helper_strategy(strategy); // can't use core::swap with bitfields
        strategy = other.strategy;
        other.strategy = helper_strategy;
        bool helper_free_when_destroyed(free_when_destroyed);
        free_when_destroyed = other.free_when_destroyed;
        other.free_when_destroyed = helper_free_when_destroyed;
        bool helper_is_sorted(is_sorted);
        is_sorted = other.is_sorted;
        other.is_sorted = helper_is_sorted;
    }
 
  • ||=== Build: Linux - Debug - static in my-current-Irrlicht (compiler: GNU GCC Compiler) ===|
    ../../include/irrArray.h||In member function ‘void irr::core::array<T, TAlloc>::swap(irr::core::array<T, TAlloc>&)’:|
    ../../include/irrArray.h|596|error: ‘swap’ is not a member of ‘irr::core’|
    ../../include/irrArray.h|596|note: suggested alternative:|
    /usr/include/c++/4.6/bits/exception_ptr.h|153|note: ‘std::__exception_ptr::swap’|
    ../../include/irrArray.h|597|error: ‘swap’ is not a member of ‘irr::core’|
    ../../include/irrArray.h|597|note: suggested alternative:|
    /usr/include/c++/4.6/bits/exception_ptr.h|153|note: ‘std::__exception_ptr::swap’|
    ../../include/irrArray.h|598|error: ‘swap’ is not a member of ‘irr::core’|
    ../../include/irrArray.h|598|note: suggested alternative:|
    /usr/include/c++/4.6/bits/exception_ptr.h|153|note: ‘std::__exception_ptr::swap’|
    ../../include/irrArray.h|599|error: ‘swap’ is not a member of ‘irr::core’|
    ../../include/irrArray.h|599|note: suggested alternative:|
    /usr/include/c++/4.6/bits/exception_ptr.h|153|note: ‘std::__exception_ptr::swap’|
    ../../include/leakHunter.h|55|error: ‘swap’ is not a member of ‘irr::core’|
    ../../include/leakHunter.h|55|note: suggested alternative:|
    /usr/include/c++/4.6/bits/exception_ptr.h|153|note: ‘std::__exception_ptr::swap’|
    ||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Post Reply