Boost logo

Boost Users :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-06-14 21:22:36


> On ?@, 6 14, 2004 at 17:25:57 -0700, Jeff Wang wrote:
>
>>I am working on a projects which was written in C
>>(*.c), is there any way to use STL Vector or Boost
>>Smart pointer class in this original C codes.

It's possible if your are willing to rename the files to *.cpp (or
whatever you preferred C++ extension is). And wrap the same code with:

extern "C"
{
<<original file content>>
}

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net