|
Boost Users : |
From: J.Flenter (yg-boost-users_at_[hidden])
Date: 2002-07-04 13:08:21
Hello,
This is my first post here, but I found some code that generated an error
using Visual Studio 6.0 (with Service Pack 5):
The documentation (url:
http://www.boost.org/libs/python/doc/inheritance.html) said:
[snip]
base_class.def(python::constructor<void>());
[snip]
when I use void at that location the compiler generates an error (although
it
does work without specifying the keyword void). The error is:
c:\BOOST\boost/python/detail/init_function.hpp(319) : error C2440: 'type
cast' : cannot convert from 'void' to 'class
boost::python::detail::reference_parameter<void>'
Expressions of type void cannot be converted to other types
c:\BOOST\boost/python/detail/init_function.hpp(314) : while
compiling class-template member function 'class
boost::python::detail::instance_holder_base *__thiscall
boost::python::detail::init1<class
boost::python::detail::instance_value_hold
I do use a different class (included as a zip file), but in this case I
don't think
that will generate the compiler error.
I hope this makes it clear...
Jacco Flenter
begin 666 sourceFiles.zip
M4$L#! H```````F%Y"P````````````````)````<V5T=&EN9W,O4$L#!!0`
M```(`(][XBQLJ6V_? ```"D!```3````<V5T=&EN9W,O<V5T=&EN9W,N:./E
M4DY)3<O,2U4(B SQ\/?CY>+ETM=7"*DL2%4`2V269.;G%5OQ<I4`A8 B"J5Y
MQ9GI>:DI"LD9B44*I1;66*2*,_*+2A1*#<VP2>;DYZ4KE!H;68/L_at_LDBFUF,
M;":*B<4H)B*;5XQF'JHKDRI+4G&[,Z,\OR@%ITNAD@!02P,$% ````@`V9[D
M+/TW#9R&`0``I0,``!(```!R969E<F5N8V5#;W5N=&5R+FBM4MMJPD 0?4X@
M_S#5%_7!K"U:+U (,6*AU>*EM% 88K*)"S&19),7L=_>W=5ZQ3<#@67V[#EG
MYHQI0DH#&GO43O*8T[2^[ *3A\#U* 1)"GQ)+S#@16Z6U0W=-.5_C\_0#;W,
M`GCP:<!BZE>LP1=.G($SLAU[/!_-G D.$9O$)JVGUB.V+6)AH]%OH64Y%A+2
M) /[T2:=SC/BZ\A^F_>=/E8-72OO&.$NA-*F)GWB^]3&3V<"+] @A(BJ5EZG
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#B35IBF
M_at_0LW"3G#'!Y>EM>+^]%P(&B%NJ890D>%,VB'2)+N?MH4#2X6BZ<EZ8K(W>+R
M^79.;NYOEF$AR_65HKP<NZQ/]PW<VC.%U*!;%&3ZAID!A;5"C:*9TYG!->"'
M0:&YXU62V1*CIK0C)DDG]9NW!:33PF +#,;=: ZXX34N/W1+F'6-/3R7"J15
M'K(U-CJ*?>8/LR>[YDUA5R%M0>C-=OS+<F_$<\: 0FW3DF=0896ZO7(K,N/F
M:7?_NW_DWBH\W(TER0K-XP_Q&()?FH>'EB^ $"ZX(>3?[*T]4FBC;&:DFK1G
ML"<P#<=[0FPZ[\$YRMC6)6>:?PWVA%18R7?TJ3O*YJ&^W-^)@O%\-/P&4$L!
M`A0`"@``````"87D+ ````````````````D````````````0`,!!`````'-E
M='1I;F=S+U!+`0(4`!0````(`(][XBQLJ6V_? ```"D!```3``````````$`
M( " @2<```!S971T:6YG<R]S971T:6YG<RYH4$L!`A0`% ````@`V9[D+/TW
M#9R&`0``I0,``!(``````````0`@`("!U ```')E9F5R96YC94-O=6YT97(N
M:%!+`0(4`!0````(`-F>Y"P"6$4)2P$``)0&```4``````````$`( " @8H"
M``!R969E<F5N8V5#;W5N=&5R+F-P<%!+`0(4`!0````(`)>@Y"SHV/UPF $`
M`$H$```-``````````$`( " @0<$``!H;VQY1W)A:6PN8W!P4$L%!@`````%
-``4`-0$``,H%````````
`
end
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