[C++-sig] Polymorphism and Dangling Reference exception

David Abrahams dave at boost-consulting.com
Wed May 24 13:56:59 CEST 2006


"Garrick Chin" <nonexistent.ftp at gmail.com> writes:

> ReferenceError: Attempt to return dangling reference to object of
> type: class std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >
>
> I do not understand why this would be thrown.  

Me neither.  What is your compiler and platform, please?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list