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. Other Discussions
  3. The Weird and The Wonderful
  4. Angry example

Angry example

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++visual-studiocomtutorial
7 Posts 7 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
    Rotted Frog
    wrote on last edited by
    #1

    Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

    // defining_member_templates_outside_a_class.cpp
    // compile with: /LD
    template <class T>
    struct S
    {
    template<class U> void f(U);
    };

    template<class T> template <class U> void S<T>::f(U)
    { //defined out of line
    }

    It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

    G S A T V 5 Replies Last reply
    0
    • R Rotted Frog

      Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

      // defining_member_templates_outside_a_class.cpp
      // compile with: /LD
      template <class T>
      struct S
      {
      template<class U> void f(U);
      };

      template<class T> template <class U> void S<T>::f(U)
      { //defined out of line
      }

      It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

      G Offline
      G Offline
      GenJerDan
      wrote on last edited by
      #2

      The Boss is wondering why I'm laughing. :laugh: Probably also wondering why the app isn't done, but that's neither here nor there.

      The enemy of my enemy of my enemy of my enemy is Kevin Bacon. My Mu[sic] My Films My Windows Programs, etc.

      1 Reply Last reply
      0
      • R Rotted Frog

        Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

        // defining_member_templates_outside_a_class.cpp
        // compile with: /LD
        template <class T>
        struct S
        {
        template<class U> void f(U);
        };

        template<class T> template <class U> void S<T>::f(U)
        { //defined out of line
        }

        It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

        S Offline
        S Offline
        StM0n
        wrote on last edited by
        #3

        Practical joke at its best... :laugh:

        (yes|no|maybe)*

        1 Reply Last reply
        0
        • R Rotted Frog

          Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

          // defining_member_templates_outside_a_class.cpp
          // compile with: /LD
          template <class T>
          struct S
          {
          template<class U> void f(U);
          };

          template<class T> template <class U> void S<T>::f(U)
          { //defined out of line
          }

          It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

          A Offline
          A Offline
          AspDotNetDev
          wrote on last edited by
          #4

          :laugh: That has to be the funniest code snippet I've ever seen! Should definitely have gone in clever code. :thumbsup: And that comment ("defined out of line") just makes it that much better!

          [

          S<T>::f(U) // Out of line.

          ](http://msdn.microsoft.com/en-us/library/8yk3t00s(v=vs.71).aspx)

          1 Reply Last reply
          0
          • R Rotted Frog

            Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

            // defining_member_templates_outside_a_class.cpp
            // compile with: /LD
            template <class T>
            struct S
            {
            template<class U> void f(U);
            };

            template<class T> template <class U> void S<T>::f(U)
            { //defined out of line
            }

            It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

            T Offline
            T Offline
            Tech Code Freak
            wrote on last edited by
            #5

            Wonder why they have written

            S::f(U)

            ??:confused::confused::confused::~:~

            S 1 Reply Last reply
            0
            • T Tech Code Freak

              Wonder why they have written

              S::f(U)

              ??:confused::confused::confused::~:~

              S Offline
              S Offline
              swampwiz
              wrote on last edited by
              #6

              *hut *he *uck *p :doh:

              1 Reply Last reply
              0
              • R Rotted Frog

                Wasn't sure whether to post this in Clever code or here, but found this snippet in a link on VS standards compliance (http://msdn.microsoft.com/en-us/library/8yk3t00s%28v=vs.71%29.aspx[^]

                // defining_member_templates_outside_a_class.cpp
                // compile with: /LD
                template <class T>
                struct S
                {
                template<class U> void f(U);
                };

                template<class T> template <class U> void S<T>::f(U)
                { //defined out of line
                }

                It made me smile this morning. If you're thinking of complaining then just S<T>::f(U). :)

                V Offline
                V Offline
                Vladimir Svyatski
                wrote on last edited by
                #7

                It's definitely not a clever code. Somebody smokes joint too often. :)

                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