Opened 5 years ago
Closed 13 months ago
#13079 closed Bugs (duplicate)
boost::variant(const char*->bool)
| Reported by: | Owned by: | ebf | |
|---|---|---|---|
| Milestone: | Boost 1.64.0 | Component: | variant |
| Version: | Boost 1.64.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
boost::variant<int, long, double, bool, string> v1("11");
cout << v1.type().name()<<endl;//bool******************why?
boost::variant<int, long, double, bool, string> v2(string("11"));
cout << v2.type().name() << endl;//class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >
return 0;
Change History (2)
comment:1 by , 5 years ago
| Component: | None → variant |
|---|---|
| Owner: | set to |
comment:2 by , 13 months ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Moved the issue to github https://github.com/boostorg/variant/issues/94