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
Not an overflow
Not Common Numbers
ToString library for C++
Hello World
Hangman
ria
Full System Specifications version 2
postfix eval in c++ - multidigits decimal
Preserving strict aliasing Union example
Title