Boost logo

Boost Users :

Subject: Re: [Boost-users] boost python & context manager/with statement
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-02-28 16:06:36

on Sun Feb 12 2012, Avi Bahra <> wrote:

> Does boost python support context management using the with
> statement? In my case I need to manage __enter__/__exit__ on
> the c++ side. Could not find any examples for this in the
> documentation.
> Any help appreciated.
> Best regards,
> Ta,
>     Avi

There's no explicit support for it, no.


Dave Abrahams
BoostPro Computing

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at