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+ETM=7"*DL2%4`2V269.;G%5OQ:DI"LD9B44*I1;66*2*,_*+2A1*#<VP2>;DYZ4KE!H;68/L@LDBFUF,
M;":*B<4H)B*;5XQF'JHKDRI+4G&[,Z,\OR@%ITNAD@!02P,$% ````@`V9[D
M+/TW#9R&`0``I0,``!(```!R969E*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
M;KAR(1DB@:^P)HFM=8Q1%[4>Y3*&64:[EN[]6)?
MEU*N[Q^D3NLI724%O;PJ6,IST>KO#X%IHK
ME M:URM@55UBA5QEB@D.8@>J0 <+M,R:9A$&A-C7QQ,&8?#$."UUCC!UQ!53
M"_!%10BL!6^4U-2.2=[P\NUSGOX4JU6_$E$K`_0+L"WM2N^H%./[)@Z#KS"8
MJ((U\]>MTX;4/9+\QE]3&?BS:1]OE'40+/];P/)NPF^'L6,['? 5@C0\
MZ/,FJ93:Q/7:%%+$64FU)JGEI4N+BKJ>>JE!W^^U/T1%X,<5YJA09#B35IBF
M@0LW"3G#'!Y>EM>+^]%P(&B%NJ890D>%,VB'2)+N?MH4#2X6BZ+R
M^79.;NYOEF$AR_65HKP"'
M0:&YXU62V1*CIK0C)DDG]9NW!:33PF +#,;=: ZXX34N/W1+F'6-/3R7"J15
M'K(U-CJ*?>8/LR>[YDUA5R%M0>C-=OS+'EB^ $"ZX(>3?[*T]4FBC;&:DFK1G
ML":?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:6YGY"P"6$4)2P$``)0&```4``````````$`( " @8H"
M``!R969E@Y"SHV/UPF $`
M`$H$```-``````````$`( " @0<$``!H;VQY1W)A:6PN8W!P4$L%!@`````%
-``4`-0$``,H%````````
`
end