Skip to content

Discrepancy - C++11 vs C++14 #6

@jxmot

Description

@jxmot

The documentation states that it's dependent on the standard-library for C++11. However, the examples are relying on C++14.

Adding the following to your source(or a header) will make the examples work without modifying them -

#if __cplusplus < 201402L
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions