Skip to content

Commit

Permalink
Enable C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
Antidote committed Oct 20, 2015
1 parent bb419b0 commit 55bf4bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 55bf4bb

Please sign in to comment.