> RSASSA_PKCS1v15_SHA_Signer privkey( StringSource( rsak, true, dec ) );
Try StringSource(...).Ref().
Julia, the C++ standard disallows passing in inline constructed objects to functions/constructors that do take non-const references. There is an issue with potential scope and lifetime of the reference (the passed in object is a temp and could go out of scope while the object it was given to was still "using" it).
Wei: Does the StringSource(...).Ref() solve the issue?
If it doesn't, just split the line into two:
StringSource strSrc( rsak, true, dec ); RSASSA_PKCS1v15_SHA_Signer privkey( strSrc );
HTH, michael
