[libcutl-users] Small test file for libcutl 1.9.0

Adnan RIHAN axel50397 at gmail.com
Thu Mar 19 12:08:46 EDT 2015


Hi Boris,

I've looked into your tests to check if it's a problem to compile libcutl with libc++ (I'm trying various tests to check if it's an issue later)  

And I have an error with a test: compiler/traversal  
> driver.cxx:26:16: error: reference to 'shared_ptr' is ambiguous
> typedef vector<shared_ptr<base> > objects;
>                ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3750:29: note: 
>       candidate found by name lookup is 'std::__1::shared_ptr'
> class _LIBCPP_TYPE_VIS_ONLY shared_ptr
>                             ^
> /usr/local/include/cutl/shared-ptr.hxx:13:9: note: candidate found by name lookup is
>       'cutl::shared_ptr'
>   class shared_ptr: bits::counter_ops<typename bits::counter_type<X>::r, X>

So I’ve tried to replace “shared_ptr” with “cutl::shared_ptr”, the errors are gone. Don’t you have that error?

BTW, I’ve compiled libcutl-1.8.1 (I’m trying it first) with stdlibc++ and libc++, all the tests seems to work, all tried with both stdlib. It’s only an issue when using std::string, which uses stdlibc++.

Does it mean that libcutl can be built with libc++ or stdlibc++ without problem ?
--
Cordialement, Adnan RIHAN.
Directeur-Gérant de Eolis-Software, société de services informatiques.

GPG: 5675-62BA (https://keybase.io/max13/key.asc)
-> Si vous n'utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).




More information about the libcutl-users mailing list