Re: [Cppcms-users] cppcms and C++11/14
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2015-04-11 13:34:02
|
Besides that fact that the stuff you pointed to works with lambdas,.. C++11 compiler support is problematic even if you take the LATEST versions. For example one of the stuff I would also borrow from C++11 is std::regex, std::shared_ptr, and more, but std::regex support for example is broken in both libstdc++ (gcc's) and buggy libc++ (clang's), there are more. So at this point CppCMS is C++11 friendly (and uses some of the stuff like auto in templates) but remains C++2003 compatible. auto_ptr removal/deprecation is one of the stupidest things in C++11. I agree thatstd::unique_ptr is way better but if you work with C++2003 you need auto_ptras only useful standard smart pointer around. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ From: Alex Beimler <ale...@we...> To: cpp...@li... Sent: Thursday, April 9, 2015 8:52 AM Subject: [Cppcms-users] cppcms and C++11/14 Hi, are there future plans for C++11/14. Like a URL-Dispatcher with lambdas or std::function, something like this: dispatch("/number/(\\d+)", [&](std::string number){ this->number(number); }); dispatch("/foo/(\\d+)/(\\d+)", [&](std::string bar2, std::string bar1){ this->foo(bar1, bar2); }); Switch between smartpointers, Use CMake to setup?, -DUSE_CPPCMS_STD_PTR=std::unique_ptr, -DUSE_CPPCMS_STD_PTR=std::auto_ptr, auto_ptr will maybe removed in C++17. cppcms::thread_pool.post more compatible with std::thread, lambdas, ... ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |