|
Boost : |
From: gaoyakun (gaoyakun_at_[hidden])
Date: 2002-11-08 02:19:40
how can i dealing a function which returns a raw pointer?
for example: int * Foo (A_Class);
i have tried return_value_policy(reference_existing_object) or return_value_policy(manage_new_object) but it doesnt work.it seem's that it only accept a pointer of a C++ class like Foo* or Foo&.
______________________________________
===================================================================
Ãâ·ÑÊÔÓÃÐÂÀË15MÊÕ·ÑÓÊÏä ¸Ï½ôÐж¯£¡ (http://vip.sina.com/sol_mail/promotion/pro_men.html)
ÐÂÀ˶þÊÖÊг¡£ºÒ»ÔªÍ¶È룬ʮ·Ö¾ªÏ²£¬°Ù·ÖÂúÒâ (http://classad.sina.com.cn/2shou/)
ÊýÍòÕÅÊÖ»úͼƬÊýÍòÊ׶ÌÐÅÁåÉùÈÎÄãÌôÑ¡£¬Ã¿Ì춼ÓиüР(http://sms.sina.com.cn/cgi-bin/sms/smspic.cgi)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk