You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Rajalakshmi Iyer <ra...@blismobile.com> on 2012/04/23 14:25:41 UTC

STL/Boost containers in Apache module

Hello,

Is it possible and safe to use STL containers within Apache modules?

Thanks!
Regards,
Raj

-- 
Twitter: @Blismobile <http://twitter.com/#!/blismobile>
BlisMobile Media 
32 Percy Street,
London W1T 2DE
www.blismobile.com
[image: BlisMobile] <http://www.blismobile.com/>[image: Follow on Twitter]<http://twitter.com/#!/blismobile>[image: 
Blis Website] <http://www.blismobile.com/>

This communication is from BlisMobile Media, which is a trading name of 
Breeze Tech (UK) Ltd, a company registered in England and Wales with 
registered number 06455773. Its registered office is 32 Percy Street, 
London W1T 2DE, United Kingdom.

 

This communication contains information that is confidential and may also 
be privileged. It is for the exclusive use of the intended recipient(s). If 
you are not the intended recipient(s), please (1) notify info@blismobile.com by 
forwarding this email and delete all copies from your system and (2) note 
that disclosure, distribution, copying or use of this communication is 
strictly prohibited. Email communications cannot be guaranteed to be secure 
or free from error or viruses. All emails sent to or from a Blismobile 
email account are securely archived and stored by an external supplier. This 
email does not constitute a contractual agreement; such agreements are in 
specified contractual or Insertion Order (IO) form only 
and exclusively contain all the terms to which Breeze Tech )UK) Ltd will be 
bound. To the extent permitted by law, Breeze Tech (UK) Ltd does not accept 
any liability for use of or reliance on the contents of this email by any 
person save by the intended recipient(s) to the extent agreed in a contract 
or Insertion Order.

 

Opinions, conclusions and other information in this email which have not 
been delivered by way of the business of Breeze Tech (UK) Ltd are neither 
given nor endorsed by it.

Re: STL/Boost containers in Apache module

Posted by Joshua Marantz <jm...@google.com>.
Yes, absolutely.  mod_pagespeed uses STL extensively.   All required
support libraries and linking magic gets pulled into the .so.  We don't use
Boost but I suspect that would work fine as well, though you might get
quite a large .so as a result of linking it in.

-Josh

On Mon, Apr 23, 2012 at 8:25 AM, Rajalakshmi Iyer <ra...@blismobile.com>wrote:

> Hello,
>
> Is it possible and safe to use STL containers within Apache modules?
>
> Thanks!
> Regards,
> Raj
>
> --
> Twitter: @Blismobile <http://twitter.com/#!/blismobile>
> BlisMobile Media
> 32 Percy Street,
> London W1T 2DE
> www.blismobile.com
> [image: BlisMobile] <http://www.blismobile.com/>[image: Follow on
> Twitter]<http://twitter.com/#!/blismobile>[image:
> Blis Website] <http://www.blismobile.com/>
>
> This communication is from BlisMobile Media, which is a trading name of
> Breeze Tech (UK) Ltd, a company registered in England and Wales with
> registered number 06455773. Its registered office is 32 Percy Street,
> London W1T 2DE, United Kingdom.
>
>
>
> This communication contains information that is confidential and may also
> be privileged. It is for the exclusive use of the intended recipient(s). If
> you are not the intended recipient(s), please (1) notify
> info@blismobile.com by
> forwarding this email and delete all copies from your system and (2) note
> that disclosure, distribution, copying or use of this communication is
> strictly prohibited. Email communications cannot be guaranteed to be secure
> or free from error or viruses. All emails sent to or from a Blismobile
> email account are securely archived and stored by an external supplier.
> This
> email does not constitute a contractual agreement; such agreements are in
> specified contractual or Insertion Order (IO) form only
> and exclusively contain all the terms to which Breeze Tech )UK) Ltd will be
> bound. To the extent permitted by law, Breeze Tech (UK) Ltd does not accept
> any liability for use of or reliance on the contents of this email by any
> person save by the intended recipient(s) to the extent agreed in a contract
> or Insertion Order.
>
>
>
> Opinions, conclusions and other information in this email which have not
> been delivered by way of the business of Breeze Tech (UK) Ltd are neither
> given nor endorsed by it.
>

Re: STL/Boost containers in Apache module

Posted by Nick Kew <ni...@apache.org>.
On Mon, 23 Apr 2012 13:25:41 +0100
Rajalakshmi Iyer <ra...@blismobile.com> wrote:

> Hello,
> 
> Is it possible and safe to use STL containers within Apache modules?

If you have code that uses them, go right ahead.

If you're writing new code, you may find also APR offers alternatives
to many STL constructs, and serves to make your life very easy in the
context of a module!

-- 
Nick Kew