jeudi 5 septembre 2019

Where to place the __declspec(dllexport) keyword when declaring types with using (c++11)

I usually see the C++11 keyword using as a type declaration.

I want to make that type visible for the users of my shared library (dll).

So (for windows) I export it with __declspec(dllexport).

__declspec(dllexport) using History = std::list<Event>;

But I don't know where to put it. I get only errors.

Aucun commentaire:

Enregistrer un commentaire