Opened 5 years ago

Closed 13 months ago

#13079 closed Bugs (duplicate)

boost::variant(const char*->bool)

Reported by: iewj@… 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 John Maddock, 5 years ago

Component: Nonevariant
Owner: set to ebf

comment:2 by Antony Polukhin, 13 months ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.