Boost logo

Boost Users :

From: frederic.bron_at_[hidden]
Date: 2007-12-09 11:48:10


For your first issue, this is supposed to be fixed in the next release: http://svn.boost.org/trac/boost/ticket/995
For the second, I am not sure but the meaning of size_t(-1) may be different from size_t(0). -1 means max value.

F. Bron
___________________________________
Frédéric Bron (frederic.bron_at_[hidden])
Unité ALT, Alcan CRV, BP 27, 38341 Voreppe
téléphone : +33 4 76 57 81 72
télécopie : +33 4 76 57 80 99

boost-users-bounces_at_[hidden] a écrit sur 09/12/2007 16:34:59 :

> Hi,
>
> I am using boost v1.34.1 and the "current" version of mingw. I got a
> problem (and solution) with the filesystem library: If the file
> convenience.hpp is included multiple times, mingw/gcc says:
>
> In function
> `ZN5boost10filesystem9extensionERKNS0_10basic_pathISsNS0_11path_traitsEEE':
> C:
> /Daten/Programme/Dev/boost_1_34_1/include/boost/filesystem/convenience.hpp:58:
> multiple definition of
> `boost::filesystem::extension(boost::filesystem::basic_path const&)'
> obj\Debug\Source\global.o:C:
> /Daten/Programme/Dev/boost_1_34_1/include/boost/filesystem/convenience.hpp:58:
> first defined here
>
> I can solve that (at least for me), if line 31 in convenience.hpp
> # define BOOST_FS_FUNC_STRING std::string
>
> is changed to
> # define BOOST_FS_FUNC_STRING inline std::string
>
>
> Another change I did to avoid an anoying warning is in line 45
>
> boost::throw_exception( basic_filesystem_error<Path>(
> "boost::filesystem::create_directories", ph, -1 ) );
>
> I changed the third parameter to 0, since it is unsigned.
>
>
> Have a nice day,
> Lennart
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net