Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-20 10:48:36


Pro8 is having trouble parsing these templates. Any ideas, Peter?

template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* * pm, int)
{
    return _mfi::dm<R, T>(*pm);
}

template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* const * pm, int)
{
    return _mfi::dm<R, T>(*pm);
}

---
### mwcc Compiler:
#      In: C:\boost\boost\bind.hpp
#    From: named_params_test.cpp
# ------------------------------
#     131:  template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* * pm, int)
#   Error:                                                                 ^
#   ')' expected
### mwcc Compiler:
#     132:  {
#   Error:  ^
#   declaration syntax error
### mwcc Compiler:
#     133:      return _mfi::dm<R, T>(*pm);
#   Error:      ^^^^^^
#   declaration syntax error
### mwcc Compiler:
#     136:  template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* const * pm, int)
#   Error:                                                                 ^^^^^
#   ')' expected
### mwcc Compiler:
#     137:  {
#   Error:  ^
#   declaration syntax error
#   Too many errors printed, aborting program
-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk