Enable C++14

This commit is contained in:
Phillip Stephens 2015-10-19 19:23:55 -07:00
parent bb419b0bfd
commit 55bf4bbdea
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
project(libBoo)
if (NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif()
if(WIN32)

View File

@ -172,7 +172,7 @@ struct TestApplicationCallback : IApplicationCallback
IWindow* mainWindow = NULL;
boo::TestDeviceFinder devFinder;
CTestWindowCallback windowCallback;
void appLaunched(IApplication* app)
void appMain(IApplication* app)
{
mainWindow = app->newWindow(_S("YAY!"));
mainWindow->setCallback(&windowCallback);
@ -210,6 +210,10 @@ int main(int argc, const char** argv)
std::unique_ptr<boo::IApplication> app =
ApplicationBootstrap(boo::IApplication::PLAT_AUTO,
appCb, _S("rwk"), _S("RWK"), argc, argv);
while (true)
{
app->pump();
}
printf("IM DYING!!\n");
return 0;
}