Clangs is complaining about type evaluations in test_mempool.cc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[100%] Building CXX object
src/test/CMakeFiles/unittest_mempool.dir/test_mempool.cc.o
In file included from /usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:20:
In file included from
/usr/srcs/Ceph/work/ceph/src/common/ceph_argparse.h:31:
In file included from /usr/srcs/Ceph/work/ceph/src/common/entity_name.h:22:
In file included from /usr/srcs/Ceph/work/ceph/src/include/encoding.h:25:
In file included from /usr/srcs/Ceph/work/ceph/src/include/denc.h:28:
/usr/include/c++/v1/map:837:5: error: static_assert failed
"Allocator::value_type must be same type as value_type"
    static_assert((is_same<typename allocator_type::value_type,
value_type>::value),
    ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/srcs/Ceph/work/ceph/src/test/test_mempool.cc:235:39: note: in
instantiation of template class 'std::__1::map<int, int,
std::__1::less<int>,
mempool::pool_allocator<mempool::pool_index_t::mempool_unittest_1,
std::__1::pair<int, int> > >' requested here
    mempool::unittest_1::map<int,int> v;
                                      ^
and more of the same on test_mempool.cc: 240 and 263.

Perhaps somebody has a suggestion on how to fix this??

--WjW
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux