NB CA-1 static_cast of temporary to rvalue reference

As directed by CWG Motion 1 from 2014-Isaquah.

Also fixes CWG1376.