GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


A Paste by Anonymous
1
 
#include <iostream>

struct foo
{
  template<typename T>
  foo( const T& ) 
  { 
    T()=2; 
  }

  template<typename T>
  void operator= ( const T& ) 
  { 
    T()=3; 
  }

  foo() {}
};

int main()
{
  foo f( (foo()) );
}