Skip to content

Page 159: Apparent contradiction between text and Listing 6-13 #85

@tcflanagan

Description

@tcflanagan

The text on p. 159 states, "...if a template function's return type is a template argument, you must specify template arguments explicitly."

In Listing 6-13, the function mean returns type T, a template argument. Yet in main(), the calls to mean do not specify any template arguments. The listing compiles and runs correctly, so the text contains either an error or an ambiguity in the use of the phrase "template argument."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions