Developpez.com - Rubrique C++

Le Club des Développeurs et IT Pro

Boost 1.41.0 : Télécharger et tester la dernière version release candidate !

Le 2009-11-02 17:09:54, par r0d, Expert éminent
Bonjour à tous,

Si vous rêvez de participer à boost, c'est le moment!! Téléchargez et testez cette version, puis faites-nous part de bugs et problèmes que vous rencontrez.

Les fichiers sont ici.
  Discussion forum
25 commentaires
  • Arzar
    Membre émérite
    L'actu en temps réel !
    Sortie de Boost 1.41.0 il y a 3 minutes 30.

    Edit : Et ouais Goten! Chaque seconde compte
  • Goten
    Membre chevronné
  • Alp
    Expert éminent sénior
    Rho on sent les gars qui campent
    Bon sinon résumé des nouveautés, dispo sur le lien donné juste au-dessus, mais pour que ça soit plus facile :


    New Libraries

    * Property Tree: A tree data structure especially suited to storing configuration data, from Marcin Kalicinski and Sebastian Redl.

    Updated Libraries

    * DateTime:
    o The default format for time durations is now "%-%O:%M:%S%F" instead of "%-%H:%M:%S%F" that was used previously. In order to retain the old behavior, the format string has to be specified explicitly during the time IO facet construction (#1861).
    o Gregorian dates now use 32-bit integer type internally on 64-bit platforms (#3308).
    o See the full changelog for more detail.
    * Filesystem:
    o Bug fixes: (#3385). (#3528). (#3509).
    * Iostreams: Some old unreleased developments. There are still several open issues that should be fixed in the next version.
    o Add a grep filter (#1627).
    o Support archives with multiple members (#1896).
    o Make tee work with input streams (#791).
    o Improved filesystem interoperability.
    o Several warnings fixed or suppressed (including #1618, #1875, #2779).
    o Various other fixes (including #1580, #1671).
    * Math: Substantially improved the performance of the incomplete gamma function and it's inverse: this enhances the performance of the gamma, poisson, chi-squared and non-central chi-squared distributions.
    * Multi-index Containers: Maintenance fixes. Consult the library release notes for further information.
    * Proto:
    o Clean up some MSVC warnings and errors in /Za (disable Microsoft extensions) mode.
    o Fixes for c++0x mode on various compilers.
    * Python: Boost.Python now supports Python 3 (Haoyu Bai's Google Summer of Code project, mentored by Stefan Seefeld).
    * Regex: Added support for many Perl 5.10 syntax elements including named sub-expressions, branch resets and recursive regular expressions.
    * Spirit: This is the initial official release of the new Spirit V2.1, a completely new library for parsing, lexing, and output generation. Note: this release is not backwards compatible with earlier versions. Known issue: qi::symbol::find will match a symbol that starts with the string you're searching for. This will be fixed in the next version.
    * System:
    o Bug fix: (#3559).
    * Thread:
    o Support for futures, promises and packaged tasks added
    o boost::thread_specific_ptr is now faster when there are lots of thread-specific objects
    o Some Boost.Thread facilities are now header-only
    * Unordered: Major update:
    o Replaced a lot of the macro based implementation with a cleaner template based implementation.
    o Reduced memory use.
    o Full details in the changelog.
    * Utility: A "const" issue of value_initialized is fixed: Its data() member function and its conversion operator are replaced by overloads for const and non-const access (#2548).
    * Wave: See the changelog for details.
    * Xpressive:
    o Fix infinite loop with some uses of \Q...\E quotemeta (#3586).
    o Eliminate unreachable code warnings on MSVC
    o Clean up some MSVC warnings and errors in /Za ("disable Microsoft extensions" mode.
    o Fixes for c++0x mode on various compilers.

    Build System

    A bug preventing "fat" 32-bit + 64-bit builds on OSX has been fixed.
    Boost.CMake moved

    The cmake version of boost has moved; the Boost.CMmake release will be separate and will lag the main release slightly, but will also be capable of producing patch releases as necessary.

    More information on the Boost CMake wiki page.
    Updated Tools

    * Quickbook 1.5: These changes require your document to use the [quickbook 1.5] tag:
    o More intuitive syntax and variable lookup for template calls (#1174, #2034, #2036).
    o Image attributes (#1157)
    o Table Ids (#1194)
    o Better handling of whitespace in section syntax. (#2712)
  • 3DArchi
    Rédacteur
    Quelque chose qui apparaît comme mise à jour et est donc un peu perdu dans la liste des update mais qui peut se voir comme une vraie nouvelle bibliothèque est la présence de Spirit V2.1 (spéciale dédicace pour florian ).
  • Arzar
    Membre émérite
    Quelqu'un a-t-il testé la nouvelle bibliothèque property_tree ?
    La syntaxe a l'air extrêmement alléchante et le parseur utilisé en interne (rapidxml) dépote.

    Malheureusement je n'arrive même pas à la compiler (sous VS10 beta 2)

    Code :
    1
    2
    3
    4
    5
    6
    7
    #include <boost/property_tree/ptree.hpp>
    int main()
    {
    	boost::property_tree::ptree pt;
    	return 0;
    }
    J'obtiens cette erreur :

    Error 1 error C2440: 'specialization' : cannot convert from 'const std::string std::_Pair_base<_Ty1,_Ty2>::* ' to 'const std::basic_string<_Elem,_Traits,_Ax> std::pair<_Ty1,_Ty2>::* ' d:\program files\boost\boost_1_41_0\boost\property_tree\detail\ptree_implementation.hpp 30 1 TestPropertyTree
    qui se réfère à
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    // ptree_implementaion.h
     template <class K, class D, class C>
        struct basic_ptree<K, D, C>::subs
        {
            struct by_name {};
            // The actual child container.
            typedef multi_index_container<value_type,
                multi_index::indexed_by<
                    multi_index::sequenced<>,
                    multi_index::ordered_non_unique<multi_index::tag<by_name>,
                        multi_index::member<value_type, const key_type,
    ici->                                   &value_type::first>,
                        key_compare
                    >
                >
            > base_container;
  • Goten
    Membre chevronné
    T'as testé sous un autre compilo?
  • Arzar
    Membre émérite
    Je vais essayer.
  • r0d
    Expert éminent
    Tiens ben justement je voulais en parler: sur la page de présentation (le lien a déjà été donné 2 fois mais je le remet pour les fainéants ), ils disent que la 1.41 a été testé sur plein de compilateurs, mais pas sur VS10. Quelqu'un a testé?
  • Alp
    Expert éminent sénior
    Apparemment ils ont testé sur la beta1 :
    Windows:

    * Visual C++ 7.1, 8,0, 9,0 on XP.
    * Visual C++ 9.0 on 32-bit Vista.
    * Visual C++ 9.0 on AMD 64-bit Vista.
    * Visual C++ 9.0 using STLport 5.2 on XP and Windows Mobile 5.0.
    * Visual C++ 10.0 beta 1 with a patch for the program options lib.
  • Arzar
    Membre émérite
    Ok, effectivement property_tree compile bien avec GCC 4.3 et GCC 4.5.
    C'est donc probablement un bug de la beta 2.
    Merci.