Re: like to know why it is segmentation fault on simple throw-exception program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1 June 2011 23:01, eric wrote:
> int main()
> {
>    try {
>       push_a_lot();
>    }
>    catch (bound_err& err) {
>      std::cerr << "Error: Bounds exceeded\n";
>      std::cerr << "Reason: " << err.what << '\n';

This should be err.what() not err.what



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux