On 6/11/2014 2:14 PM, Matt wrote:
window = SDL_CreateWindow (cfg["window"]["caption"].str.ptr, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_SHOWN);
I'm curious -- does cfg[""][""].str ensure that the string is null terminated? Because if it doesn't, you've got a potential problem here (aside from the fact that you aren't checking the return value).