Changeset 2963


Ignore:
Timestamp:
Jan 21, 2013, 8:36:51 AM (9 years ago)
Author:
Peter
Message:

closes #472. Defaut constructors in compose functors.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/utility.cc

    r2943 r2963  
    254254  B b;
    255255
    256   utility::compose_f_gx_hy<B, U1, U2> binary =
    257     utility::make_compose_f_gx_hy(b, u1, u2);
    258 
    259   utility::compose_f_gxy<U2, B> binary2 =
    260     utility::make_compose_f_gxy(u2, b);
    261 
    262   utility::compose_f_gx<U1, U2> unary =
    263     utility::make_compose_f_gx(u1, u2);
     256  utility::compose_f_gx_hy<B, U1, U2> binary;
     257  binary = utility::make_compose_f_gx_hy(b, u1, u2);
     258
     259  utility::compose_f_gxy<U2, B> binary2;
     260  binary2 = utility::make_compose_f_gxy(u2, b);
     261
     262  utility::compose_f_gx<U1, U2> unary;
     263  unary = utility::make_compose_f_gx(u1, u2);
    264264}
    265265
  • trunk/yat/utility/stl_utility.h

    r2857 r2963  
    169169  public:
    170170    /**
     171       \brief default constructor
     172
     173       Requires that F, G, and H have default constructors
     174    */
     175    compose_f_gx_hy(void) {}
     176
     177    /**
    171178       \brief Constructor
    172179     */
     
    240247  public:
    241248    /**
     249       \brief default constructor
     250
     251       Requires that F, G, and H have default constructors
     252    */
     253    compose_f_gxy(void) {}
     254
     255    /**
    242256       \brief Constructor
    243257     */
     
    305319  {
    306320  public:
     321    /**
     322       \brief default constructor
     323
     324       Requires that F and H have default constructors
     325    */
     326    compose_f_gx(void) {}
     327
    307328    /**
    308329       \brief Constructor
Note: See TracChangeset for help on using the changeset viewer.