ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.48k stars 891 forks source link

crow visualstudio support(VS2015 RC) #65

Open jen6 opened 9 years ago

jen6 commented 9 years ago

VS 2015 RC support constexpr and noexcept now(have little limitation but works well) I think crow have to prepare for VS too http://blogs.msdn.com/b/vcblog/archive/2014/11/17/c-11-14-17-features-in-vs-2015-preview.aspx

d-led commented 9 years ago

check out #82 & https://github.com/d-led/crow_example

kiwidoggie commented 9 years ago

In crow.h

//#ifdef CROW_MSVC_WORKAROUND

define CROW_ROUTE(app, url) app.route_dynamic(url)

//#else //#define CROW_ROUTE(app, url) app.routecrow::black_magic::get_parameter_tag(url)(url) //#endif

Terrible VS2015 support, but it compiles and runs.

DethRaid commented 7 years ago

In case anyone is wondering, this workaround does not work on Visual Studio 2017