Re: [Cppcms-users] cppcms and C++11/14
Brought to you by:
artyom-beilis
From: Tolga H. <fas...@gm...> - 2015-04-11 15:28:54
|
It will also be removed when C++17 arrives. On Sat, Apr 11, 2015, 17:17 Paolo Bolzoni <pao...@gm...> wrote: > I don't understand, the deprecation of std::auto_ptr applies only if > you use C++11, if you use C++03 of course it does not apply. > > On Sat, Apr 11, 2015 at 10:33 PM, Artyom Beilis <art...@ya...> > wrote: > > 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 that > > std::unique_ptr is way better but if you work with C++2003 you need > auto_ptr > > as 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 > > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > > > > ------------------------------------------------------------------------------ > 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 > |