How can i use std::wstring variable as argument in to swprintf_s instead wchar_t *? 
My code is as below but has error:
#include <string>
#include <iostream>
using namespace std;
int main(){
    std::wstring     msg(20, 0);
    swprintf_s( msg.c_str(), 20, L"This is a test for using std::wstring");//this line has error
 wcout<< msg<< endl;
return 0;
}
 
    