1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template arguments

Discussion in 'C++' started by imported_onako, Sep 2, 2010.

  1. imported_onako

    imported_onako New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    My templated function look as follows:
    Code:
    template 
    void funct(MatTypeOne& m1, MatTypeTwo& m2) {
         //here I would need to check whether m1 and m2 are of the same "type",
         //meaning that MatTypeOne is the same as MatTypeTwo
    } 
    
    What is the way to check whether m1 and m2 belong to same/different types?
    Thanks
     

Share This Page