User profile: Cubbi

User info
User name:Cubbi
Name:Cubbi
Location:Long Island, NY, USA
Website:http://stackoverflow.com/users/273767/cubbi
Bio:First language: PDP-11 assembly
Favorite language for fun: Forth or APL or Haskell
Favorite language for work: C++14 with boost

Education: Ph.D. in chemistry
Career:
1996: scientific software (phys. chemistry)
2000: OS development (hard real-time/military)
2002: scientific research (biochemistry)
2005: real-time C++ (transportation/city infrastructure)
2012: large scale infrastructure C++ (finance)

also taught programming in college and published a couple books
(non-English: http://amzn.to/18QDsFI )

also wrote much of http://cppreference.com

Biggest peeve: those who attempt to teach C++ but instead propagate nonsense like
while(!stream.eof()) or while(stream.good())
void main()
Google C++ Style Guide
The FQA

Opinions are my own and do not represent the position of my employer.
Statistical data
Birthdate:Feb 18, 1976
Gender:Male
Occupation:Engineer
Skills:C
C++
Assembly
History
Joined:
Number of posts:3684
Latest posts:

Value returning function question
Function call is an operator (it's even overloadable as "operator()")

Assorted C++ Questions
I'll give it a try too #1: as tcs said, it's for short-lived resources; I've used local blocks to s...

using std::shared_ptr
It's no different from any other pointer, you assign it: [code]void A::Assign_Pointer() { Share...

Because I do not handle the exception?
There's a usage summary with some references at http://en.cppreference.com/w/cpp/language/exceptions

casting to rvalue
Expressions can be l-/r-/x-values, but cannot have a reference type Objects cannot be l-/r-/x-values...