<div dir="ltr"><div>Hi Everyone</div><div><br></div><div>MSVC issues a lot of warnings because it doesn't handle exception specifications well. I think MSVC treats a throw(std::bad_alloc) exception on the operator new function as if it were throw(...), but it issues a noisy warning when it does this. I'd like to stop that warning.</div>
<div><br></div><div><div>I've tried a few times to get a patch like this one through, so far with no success.</div></div><div><br></div><div>I would like to either remove the specification if it's not required by anybody anymore (which this patch tries) or add an alternate path for MSVC. I tried the alternate path option for MSVC in previous patches but they never got traction or at least committed by anyone.</div>
<div><br></div><div>So this patch tries the path of removing the bad_alloc exception spec for new for all platforms.</div><div><br></div><div>I'm sure everyone will correct me if I'm wrong, but my thinking is that this will be ok, because a function that has no exception spec can throw anything making them equivalent to throw(...), and exception specifications are deprecated anyway. So can we just remove them for this function as this patch does?</div>
<div><br></div></div>