Ben Kietzman created ARROW-12816:
------------------------------------

             Summary: [C++] C++14 laundry list
                 Key: ARROW-12816
                 URL: https://issues.apache.org/jira/browse/ARROW-12816
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Ben Kietzman


Improvements to make/be aware of once C++14 is available:

- Ensure that lambda closure members are moved into where ever 
possible/appropriate. We have a lot of local variables whose only function is 
getting copied into a closure, including some demotions to shared_ptr since 
move only types can't be closed over in c++11
- visitor pattern can be used more fluidly with template lambdas, for example 
we could have a utility like {{ VisitInts(offset_width, offset_bytes, [&](auto* 
offsets) { /*mutate offsets*/ }) }}
- constexpr switch, for use in type traits functions
- std::enable_if_t
- std::quoted is available for quoting strings'
- std::make_unique
- standard {{[[deprecated]]}} attribute
- temporal literals such as ""s, ""ns, ...
- binary literals with place markers such as 0b1100_1111



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to