Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // deduce_domain_n.hpp Chris@16: // Definitions of common_domain[n] and deduce_domain[n] class templates. Chris@16: // Chris@16: // Copyright 2008 Eric Niebler. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: template Chris@16: struct common_domain3 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; Chris@16: typedef common3 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain3 Chris@16: : common_domain3< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain4 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; Chris@16: typedef common4 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain4 Chris@16: : common_domain4< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain5 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; Chris@16: typedef common5 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain5 Chris@16: : common_domain5< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain6 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; typedef typename common_domain2::type common6; Chris@16: typedef common6 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain6 Chris@16: : common_domain6< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain7 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; typedef typename common_domain2::type common6; typedef typename common_domain2::type common7; Chris@16: typedef common7 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain7 Chris@16: : common_domain7< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain8 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; typedef typename common_domain2::type common6; typedef typename common_domain2::type common7; typedef typename common_domain2::type common8; Chris@16: typedef common8 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain8 Chris@16: : common_domain8< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain9 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; typedef typename common_domain2::type common6; typedef typename common_domain2::type common7; typedef typename common_domain2::type common8; typedef typename common_domain2::type common9; Chris@16: typedef common9 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain9 Chris@16: : common_domain9< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {}; Chris@16: template Chris@16: struct common_domain10 Chris@16: { Chris@16: typedef A0 common1; Chris@16: typedef typename common_domain2::type common2; typedef typename common_domain2::type common3; typedef typename common_domain2::type common4; typedef typename common_domain2::type common5; typedef typename common_domain2::type common6; typedef typename common_domain2::type common7; typedef typename common_domain2::type common8; typedef typename common_domain2::type common9; typedef typename common_domain2::type common10; Chris@16: typedef common10 type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: template Chris@16: struct deduce_domain10 Chris@16: : common_domain10< Chris@16: typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type , typename domain_of::type Chris@16: > Chris@16: {};