Opened 16 years ago

Closed 16 years ago

#797 closed Bugs (Invalid)

doc of placeholer expression requirements incomplete

Reported by: cppljevans Owned by: david_abrahams
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

he 3 expression requirements on:

http://www.boost.org/libs/mpl/doc/refmanual/placeholder-expression.html

make no mention that X should have a nested
type typedef.  IOW, X must be a metafunction
as defined here:

http://www.boost.org/libs/mpl/doc/refmanual/metafunction.html

However, I believe it should since I'm
getting compile-time error messages
without the nested typedef.

Change History (1)

comment:1 by david_abrahams, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=52572
Originator: NO

The documentation is correct as is.  std::vector<_1> is a placeholder expression even though std::vector has no nested ::type.

Whatever compiler errors you're seeing are not caused by a bug in the documentation.
Note: See TracTickets for help on using tickets.