Skip to contentSkip to conversation

Clang complains about mismatiching types.

DISCUSSION Willem Jan Withagen 1 participant 1 message Feb 20, 2017

lore
Share & tools
lore
#0 lore raw

I "fixed" the the bluestore inclusion, but hten still run into this type mismatch in Clang.

--WjW

In file included from /home/jenkins/workspace/ceph-master/src/osd/OSDMapMapping.cc:4:
In file included from /home/jenkins/workspace/ceph-master/src/osd/OSDMapMapping.h:9:
/usr/include/c++/v1/map:820: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),

    ^

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jenkins/workspace/ceph-master/src/osd/OSDMapMapping.h:242:49:
note: in instantiation of template class 'std::__1::map<int, OSDMapMapping::PoolMapping, std::__1::less<int>, mempool::pool_allocator<mempool::pool_index_t::mempool_osdmap_mapping, std::__1::pair<int, OSDMapMapping::PoolMapping> > >' requested here

  mempool::osdmap_mapping::map<int,PoolMapping> pools;
                                                ^

1 error generated.
gmake[2]: *** [src/CMakeFiles/common-objs.dir/build.make:1992:
src/CMakeFiles/common-objs.dir/osd/OSDMapMapping.cc.o] Error 1 gmake[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target rbd_test_mock
[ 21%] Building CXX object src/librbd/CMakeFiles/rbd_api.dir/librbd.cc.o [ 22%] Building CXX object src/test/librbd/CMakeFiles/rbd_test.dir/test_fixture.cc.o
[ 22%] Linking