Std :: shared_ptr et les listes d'initialisation

Le std::shared_ptr constructeur n'est pas se comporter comme je m'y attendais:

#include <iostream>
#include <vector>

void func(std::vector<std::string> strings)
{
    for (auto const& string : strings)
    {
        std::cout << string << '\n';
    }
}

struct Func
{
    Func(std::vector<std::string> strings)
    {
        for (auto& string : strings)
        {
            std::cout << string << '\n';
        }
    }
};

int main(int argc, const char * argv[])
{

    func({"foo", "bar", "baz"});
    Func({"foo", "bar", "baz"});
    //auto ptr = std::make_shared<Func>({"foo", "bar", "baz"}); //won't compile.
    //auto ptr = std::make_shared<Func>{"foo", "bar", "baz"}; //nor this.
    return 0;
}

Je fais quelque chose de mal ou est le compilateur? Le compilateur est:

$ clang++ --version
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (basé sur LLVM 3.1 svn)

edit: shared_ptr au lieu de make_shared.

Voici l'erreur:

make -k 
clang++ -std=c++11 -stdlib=libc++    main.cc   -o main
main.cc:28:18: error: no matching function for call to 'make_shared'
      auto ptr = std::make_shared<Func>({"foo", "bar", "baz"});
                 ^~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/c++/v1/memory:4621:1: note: candidate function not viable:
     requires 0 arguments, but 1 was provided
make_shared(_Args&& ...__args)
^
1 error generated.

source d'informationauteur dpj