examples/vector: use a temporary variable to test rvalue references