lundi 29 février 2016

How much of C++11 is usable in Windows Kernel

The latest WDK is delivered to be used with Visual Studio 15, which supports C++11.

However, I have not seen documentation about how much of the functionality is usable.

Obviously, I wouldn't use std::thread and std::mutex, but less clearly, is the magic statics.

Class * function()
{
     static Class myInstance;

     return &myInstance;
}

That is now thread-safe in user mode, but it is unclear whether this construction may work in kernel.

More concerning, is pre C++11 code would have been acceptable in kernel (assuming destructor was trivial).

Aucun commentaire:

Enregistrer un commentaire