Closed
Bug 613697
Opened 14 years ago
Closed 14 years ago
|new (fallible_t()) Foo()| doesn't work on windows
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 613766
People
(Reporter: bent.mozilla, Unassigned)
Details
The following line of code compiles just fine on OS X (and presumably linux):
Block *b = new (fallible_t()) Block();
On windows, however, try server is giving me this error:
<filename> : error C2066: cast to function type is illegal
<filename> : error C2440: 'initializing' : cannot convert from 'mozilla::fallible_t (__cdecl **)(void)' to 'EdgePool::Block *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Not sure what to do here, but it looks like all |new| on windows is infallible at the moment.
Does this differ from bug 613766?
Reporter | ||
Comment 2•14 years ago
|
||
Oops, looks like I accidentally double-filed.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•