On Thursday, March 31, 2016 at 12:03:06 AM UTC-4, manasi deshpande wrote:
>
> I have used 
> #include "md5.h"
> #include "hex.h"
>
> and I get the compile error in "algparam.h"
>
> template <class T>
> class AlgorithmParametersTemplate : public AlgorithmParametersBase
> {
> public:
> AlgorithmParametersTemplate(const char *name, const T &value, bool 
> throwIfNotUsed)
> : AlgorithmParametersBase(name, throwIfNotUsed), m_value(value)
> {
> }
>
> void AssignValue(const char *name, const std::type_info &valueType, void 
> *pValue) const
> {
> // special case for retrieving an Integer parameter when an int was passed 
> in
> if (!(g_pAssignIntToInteger != NULL && typeid(T) == typeid(int) && 
> g_pAssignIntToInteger(valueType, pValue, &m_value)))
> {
> NameValuePairs::ThrowIfTypeMismatch(name, typeid(T), valueType);
> *reinterpret_cast<T *>(pValue) = m_value;
> }
> }
>
> void MoveInto(void *buffer) const
> {
> AlgorithmParametersTemplate<T>* p = new(buffer) 
> AlgorithmParametersTemplate<T>(*this);
> CRYPTOPP_UNUSED(p); // silence warning
> }
>
> protected:
> T m_value;
> };
>
> Error 3 error C2061: syntax error : identifier 'buffer' 
> c:\md5\cryptopp563\algparam.h 
>

Something looks fishy... 'buffer' is clearly present in MoveInto. I'm also 
wondering about the "Error3" and why the compiler did not emit the line 
number. 

Can you duplicate it with the latest sources? You can get the sources from 
https://github.com/weidai11/cryptopp by clicking the "Download ZIP" button.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to