Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
It complies!
#include <iostream> class bar; class foo { public: operator bar() const; void use() {} }; class bar { public: bar(const foo& foo); void use() {} }; void baz() { foo f; bar b = f; // Fine b.use(); const foo f2; bar b2 = f2; // error: conversion from ‘const foo’ to ‘bar’ is ambiguous b2.use(); } int main() { std::cout << "Test" << std::endl; return 0; }
run
|
edit
|
history
|
help
0
dynamic_cast in assert Causing Error
jkljklj
Fibonacci stairs
unordered map broken msvc
ntohl
C++ standard library formatted input hexadecimal float without prefix or exponent test case
hangman
1
MSVC14 <exception> header
CStringA