Project

General

Profile

Bug #7719

Convert a cpp17::any with unsigned long to a string always throws.

Added by Andreas Frolov 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/17/2020
Due date:
% Done:

0%

Estimated time:

Description

The following code always throws:

Wt::cpp17::any value = 4ul;
auto s = Wt::asString(value);

because you try to cast value to the type long instead of unsigned long what leads to an exception.

Also available in: Atom PDF