From 55bf4bbdea051618a0a288681eb8eabed1176a91 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 19 Oct 2015 19:23:55 -0700 Subject: [PATCH] Enable C++14 --- CMakeLists.txt | 2 +- test/main.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 456f0ce..059e7dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/test/main.cpp b/test/main.cpp index ed9ab6f..53ed8d2 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -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 app = ApplicationBootstrap(boo::IApplication::PLAT_AUTO, appCb, _S("rwk"), _S("RWK"), argc, argv); + while (true) + { + app->pump(); + } printf("IM DYING!!\n"); return 0; }