libecap with C++11 : ecap squid

Asked by amritanshu on 2016-11-07

I was curious about the status of libecap with c++11, is it possible to use the headers with C++11 based code in a supported way?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
2016-11-08
Last query:
2016-11-08
Last reply:
2016-11-07
Best Alex Rousskov (rousskov) said : #1

If you are able to compile your adapter, libecap, and the host application using the same compiler with C++11 support enabled, then you should be safe. If you are able to compile your adapter, libecap, and the host application using the same compiler with C++11 support disabled, then you should be safe. All other combinations are risky and not recommended unless you know exactly what you are doing.

Future major eCAP releases will require C++11 support.

amritanshu (amritanshu) said : #2

many thanks for your quick response.

It seems the latest 3.5.2 are already C++11. so for ecaps

I am assuming ./configure CXXFLAGS= 'std=C++11' should work. (it has not for me but is that the right direction?) If I get stuck I will ask again :)

amritanshu (amritanshu) said : #3

Thanks Alex Rousskov, that solved my question.

amritanshu (amritanshu) said : #4

PS:it did work.