From: <den...@us...> - 2010-06-28 09:17:04
|
Revision: 202 http://stdair.svn.sourceforge.net/stdair/?rev=202&view=rev Author: denis_arnaud Date: 2010-06-28 09:16:58 +0000 (Mon, 28 Jun 2010) Log Message: ----------- [Dev] Added pragma directives to support Boost versions lower than 1.35 (e.g., for RedHat/CentOS 5). Modified Paths: -------------- trunk/stdair/stdair/factory/FacBomStructure.hpp Modified: trunk/stdair/stdair/factory/FacBomStructure.hpp =================================================================== --- trunk/stdair/stdair/factory/FacBomStructure.hpp 2010-06-28 08:59:37 UTC (rev 201) +++ trunk/stdair/stdair/factory/FacBomStructure.hpp 2010-06-28 09:16:58 UTC (rev 202) @@ -9,11 +9,15 @@ #include <string> #include <vector> #include <iostream> -// BOOST Fusion +// Boost Fusion +#if BOOST_VERSION >= 103500 #include <boost/fusion/container/map.hpp> #include <boost/fusion/include/map.hpp> #include <boost/fusion/sequence/intrinsic/at_key.hpp> -// STDAIR +#else // BOOST_VERSION >= 103500 +#include <boost/mpl/map.hpp> +#endif // BOOST_VERSION >= 103500 +// StdAir #include <stdair/STDAIR_Types.hpp> #include <stdair/basic/BasConst_Inventory.hpp> #include <stdair/bom/BomChildrenHolderImp.hpp> @@ -58,6 +62,7 @@ typedef typename CHILD::Content_T CHILD_CONTENT_T; typedef BomChildrenHolderImp<CHILD_CONTENT_T> CHILDREN_HOLDER_T; +#if BOOST_VERSION >= 103500 CHILDREN_HOLDER_T*& lChildrenHolder_ptr = boost::fusion::at_key<CHILD_CONTENT_T> (ioParent._holderMap); @@ -67,6 +72,11 @@ } return addObjectToHolder<CHILD_CONTENT_T> (*lChildrenHolder_ptr, iChild); + +#else // BOOST_VERSION >= 103500 + return true; + +#endif // BOOST_VERSION >= 103500 } // ////////////////////////////////////////////////////////////////// @@ -79,6 +89,7 @@ typedef typename CHILD::Content_T CHILD_CONTENT_T; typedef BomChildrenHolderImp<CHILD_CONTENT_T> CHILDREN_HOLDER_T; +#if BOOST_VERSION >= 103500 CHILDREN_HOLDER_T*& lChildrenHolder_ptr = boost::fusion::at_key<CHILD_CONTENT_T> (ioParent._holderMap); @@ -89,6 +100,11 @@ return addFullObjectToHolder<CHILD_CONTENT_T> (*lChildrenHolder_ptr, iChild); + +#else // BOOST_VERSION >= 103500 + return true; + +#endif // BOOST_VERSION >= 103500 } // ////////////////////////////////////////////////////////////////// This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |