Re: My Clang compilation is complaining about missing merge.....

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

 



On Wed, Oct 31, 2018 at 7:57 PM Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote:
>
> Xie Xingguo,
>
> Do you have suggestions on how to fix this.

i am not Xingguo. my 2 cents is to

#ifdef HAVE_STDLIB_MAP_SPLICING
  // use .merge()
#else
  // use .insert()
#endif

>
> Thanx,
> --WjW
>
>
> /home/jenkins/workspace/ceph-master/src/mon/OSDMonitor.cc:8679:18:
> error: no member named 'merge' in
> 'std::__1::map<std::__1::basic_string<char>,
> std::__1::map<std::__1::basic_string<char>,
> std::__1::basic_string<char>,
> std::__1::less<std::__1::basic_string<char> >,
> std::__1::allocator<std::__1::pair<const std::__1::basic_string<char>,
> std::__1::basic_string<char> > > >,
> std::__1::less<std::__1::basic_string<char> >,
> mempool::pool_allocator<mempool::mempool_osdmap, std::__1::pair<const
> std::__1::basic_string<char>,
> std::__1::map<std::__1::basic_string<char>,
> std::__1::basic_string<char>,
> std::__1::less<std::__1::basic_string<char> >,
> std::__1::allocator<std::__1::pair<const std::__1::basic_string<char>,
> std::__1::basic_string<char> > > > > > >'
>       ec_profiles.merge(old_ec_profiles);
>       ~~~~~~~~~~~ ^
> 1 error generated.
> gmake[2]: *** [src/mon/CMakeFiles/mon.dir/build.make:128:
> src/mon/CMakeFiles/mon.dir/OSDMonitor.cc.o] Error 1
> gmake[2]: *** Waiting for unfinished jobs....



-- 
Regards
Kefu Chai



[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