Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Templates

Templates

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiowpfhelpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Russell
    wrote on last edited by
    #1

    Is there a sintax error?:confused:

    template<typename MYTYPE> class CMyTemplate{
    ....
    };

    template<typename MYTYPE> class CFamily{
    private:
    CMyTemplate< CMyTemplate<MYTYPE> > m_Member;:mad:
    public:
    ....
    };

    VS tells: Missing ";" before "<" where I delcare m_Member :omg::omg::wtf::wtf:


    Russell

    R 1 Reply Last reply
    0
    • R Russell

      Is there a sintax error?:confused:

      template<typename MYTYPE> class CMyTemplate{
      ....
      };

      template<typename MYTYPE> class CFamily{
      private:
      CMyTemplate< CMyTemplate<MYTYPE> > m_Member;:mad:
      public:
      ....
      };

      VS tells: Missing ";" before "<" where I delcare m_Member :omg::omg::wtf::wtf:


      Russell

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      After 4 painful days ... got it! (to many #include in the project ... :-O ) tnx anyway :-D


      Russell

      S 1 Reply Last reply
      0
      • R Russell

        After 4 painful days ... got it! (to many #include in the project ... :-O ) tnx anyway :-D


        Russell

        S Offline
        S Offline
        sw thi
        wrote on last edited by
        #3

        After 4 painful days?? It's only been 30 mins :~

        R 1 Reply Last reply
        0
        • S sw thi

          After 4 painful days?? It's only been 30 mins :~

          R Offline
          R Offline
          Russell
          wrote on last edited by
          #4

          there was 4 days - 30 min that I'm trying to solve the problem by myself.:(( At the end I surrender and ask to CP.:sigh: But (wow) without any answer I solve it immediately!:-D It could be that CP will solve the problem telepathycally,... or it gives a lot of luck! What a great world this is!:laugh::laugh: :rose:


          Russell

          M 1 Reply Last reply
          0
          • R Russell

            there was 4 days - 30 min that I'm trying to solve the problem by myself.:(( At the end I surrender and ask to CP.:sigh: But (wow) without any answer I solve it immediately!:-D It could be that CP will solve the problem telepathycally,... or it gives a lot of luck! What a great world this is!:laugh::laugh: :rose:


            Russell

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            You should have asked in the first 30 minutes :) Even though nobody answered, you would have solved it and you could have taken 4 days off! Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            R 1 Reply Last reply
            0
            • M Mark Salsbery

              You should have asked in the first 30 minutes :) Even though nobody answered, you would have solved it and you could have taken 4 days off! Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              R Offline
              R Offline
              Russell
              wrote on last edited by
              #6

              wow!! You are a genius!:-D Why are you telling this to me only now? :(( :laugh::laugh:


              Russell

              M 1 Reply Last reply
              0
              • R Russell

                wow!! You are a genius!:-D Why are you telling this to me only now? :(( :laugh::laugh:


                Russell

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                _Russell_ wrote:

                Why are you telling this to me only now?

                To rub it in (salt in the wound), of course :)

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups