3 ms·
That's not modern C++. This is much less noisy: #include <memory> #include <vector> // ... // circle and shape are user-defined types auto
by RotsiserMho 12y ago
That's not modern C++. This is much less noisy:
#include <memory>
#include <vector>
// ...
// circle and shape are user-defined types
auto p = make_shared<circle>( 42 );
auto shapes = load_shapes();
for (auto s : shapes) {
if( s && *s == *p )
cout << *s << " is a match\n";
}
Not sure what MS is thinking.
- alok-g 12y agoI guess a next feature would be auto auto (i.e., do not have to write auto). :-)