Literal initialization for const references
So you can write code like this: void f( const string & s ) { } f( “foobar” ); Although strictly speaking what is actually happening here is not the literal being bound to a const reference – instead a temprary string object is created: string( “foobar” ); and this nameless string is bound to … Read more