ClickHouse/dbms/src
Amos Bird ea84430864 Get rid of useless std::move to get NRVO
http://eel.is/c++draft/class.copy.elision#:constructor,copy,elision

Some quote:

> Speaking of RVO, return std::move(w); prohibits it. It means "use move constructor or fail to compile", whereas return w; means "use RVO, and if you can't, use move constructor, and if you can't, use copy constructor, and if you can't, fail to compile."

There is one exception to this rule:
```cpp
Block FilterBlockInputStream::removeFilterIfNeed(Block && block)
{
    if (block && remove_filter)
        block.erase(static_cast<size_t>(filter_column));

    return std::move(block);
}
```

because references are not eligible for NRVO, which is another rule "always move rvalue references and forward universal references" that takes precedence.
2018-08-27 22:15:48 +08:00
..
AggregateFunctions Style #2913 2018-08-24 08:25:00 +03:00
Analyzers Less dependencies [#CLICKHOUSE-2] 2018-06-05 22:46:49 +03:00
Client Merge branch 'master' into CLICKHOUSE-2910 2018-08-14 23:29:42 +03:00
Columns Get rid of useless std::move to get NRVO 2018-08-27 22:15:48 +08:00
Common Tweak error code in ZooKeeper library for correct expectations from the calling code [#CLICKHOUSE-3916] 2018-08-27 15:19:29 +03:00
Core Attempt to generalize ZooKeeper interface [#CLICKHOUSE-2] 2018-08-25 04:58:14 +03:00
Databases Preparation for extra warnings [#CLICKHOUSE-2] 2018-08-10 07:02:56 +03:00
DataStreams fix vertical merge for empty parts [#CLICKHOUSE-3913] 2018-08-23 15:04:30 +03:00
DataTypes Fix reading from partial granule for low cardinality type. #2896 2018-08-22 15:47:06 +03:00
Dictionaries Get rid of useless std::move to get NRVO 2018-08-27 22:15:48 +08:00
Formats Fixed style violations [#CLICKHOUSE-2] 2018-08-10 04:41:54 +03:00
Functions Get rid of useless std::move to get NRVO 2018-08-27 22:15:48 +08:00
Interpreters Get rid of useless std::move to get NRVO 2018-08-27 22:15:48 +08:00
IO Merge branch 'read' of https://github.com/amosbird/ClickHouse into amosbird-read 2018-08-26 02:55:22 +03:00
Parsers Get rid of useless std::move to get NRVO 2018-08-27 22:15:48 +08:00
Storages Merge branch 'master' into generalize-zookeeper 2018-08-26 03:32:15 +03:00
TableFunctions Add schema argument to ODBC table func. 2018-08-24 16:18:17 +08:00
CMakeLists.txt Better modularity of formats. (#2492) 2018-06-10 22:22:49 +03:00