I'm trying to avoid using boost, .begin() and .end(), and codecvt since it's been deprecated. Is there any other good practice in converting wstring to const char * or even std::string in C++17 on Windows? Thanks!
            Asked
            
        
        
            Active
            
        
            Viewed 516 times
        
    0
            
            
        - 
                    You can't convert a string to `const char*`. A `const char*` can at best point to a string. Maybe you meant convert to `char[]`. – François Andrieux Jun 14 '18 at 17:19
- 
                    Other useful reading: [Deprecated headerreplacement](https://stackoverflow.com/questions/42946335/deprecated-header-codecvt-replacement) – user4581301 Jun 14 '18 at 17:20
