Skip to content

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

@apolukhin

Description

@apolukhin
	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;

Issue was imported from Trac 13079

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions