This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to get more info about 'bad_function_call' ?


Jonathan Wakely wrote:

Just humour me and try assert( work != nullptr ) before the call to
work() where the exception gets thrown.

From the stack trace, that would be at ltask.cc:84
---
   That's what I needed.  I'd tried
if(f==(uint64_t) 0) and (f=NULL) and ((void *)f ==(void *)0)
all of which gave type conversion errors
---

nullptr was the bit that I was missing.

It may not be specific to libstc++ but it wasn't in 'C' that I remember.

I appreciate your patience and good natured replies! ;-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]