daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jun 23rd, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. inline int ProcessByValue(int i)
  2. {
  3.     // process i somehow
  4. }
  5.  
  6. inline int ProcessByReference(const int& i)
  7. {
  8.     // process i somehow
  9. }
  10.    
  11. int two = plus1( 1 );  //  compile error if plus1 is declared as "int plus1( int& )"
  12.  
  13. double y = sqrt( 1.1 * 2 );  // compile error if sqrt is declared as "double sqrt( const double& )"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top