From: <qua...@us...> - 2009-10-28 10:06:10
|
Revision: 58 http://stdair.svn.sourceforge.net/stdair/?rev=58&view=rev Author: quannaus Date: 2009-10-28 10:05:59 +0000 (Wed, 28 Oct 2009) Log Message: ----------- [Dev] Some changes in factory. Modified Paths: -------------- trunk/stdair/stdair/factory/FacBomContent.hpp Modified: trunk/stdair/stdair/factory/FacBomContent.hpp =================================================================== --- trunk/stdair/stdair/factory/FacBomContent.hpp 2009-10-28 09:38:19 UTC (rev 57) +++ trunk/stdair/stdair/factory/FacBomContent.hpp 2009-10-28 10:05:59 UTC (rev 58) @@ -30,8 +30,12 @@ /** Create the root of the BOM tree, i.e., a pair of linked BomRootStructure and BomRoot objects. */ template <typename BOM_ROOT> - BOM_ROOT& create (typename BOM_ROOT::BomKey_T iKey) { - BOM_ROOT& lBomRoot = createInternal<BOM_ROOT>(iKey); + BOM_ROOT& create () { + // Define the typename for BomRootKey. + typedef typename BOM_ROOT::BomKey_T BOM_ROOT_KEY_T; + // Create the BOM root object. + BOM_ROOT_KEY_T lBomRootKey; + BOM_ROOT& lBomRoot = createInternal<BOM_ROOT>(lBomRootKey); return lBomRoot; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |