#include <string> struct Foo { Foo(const std::string&) {} }; int main() { Foo f = "Hello"; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:10:11: error: conversion from ‘const char [6]’ to non-scalar type ‘Foo’ requested
Standard output is empty