Reputation: 2454
Is there anything apart from iostreams that cannot be copied and are there any non global workarounds to use them without knowing about pointers and references.
If runtime and memory consumption are not a concern C++11 (with its tuple) apparently reduces the need for knowing about those. I am hoping I can skip them entirely to code C++ for non systems level programs.
Upvotes: 0
Views: 141
Reputation: 179991
Trivially, any function, which is why those are always passed around as pointers to functions.
Upvotes: 1
Reputation: 35515
From the top of my head:
std::future
std::mutex
std::lock_guard
std::unique_lock
I'm probably missing many more...
Upvotes: 3
Reputation: 27577
Basically anything that doesn't have a copy constructor or assignment operator can't be copied and you rarely want a global workaround as they cause endless amounts of problems. So there's no reduction nor skipping of the need to know about pointers and references.
Upvotes: 3