12.07.2015 Views

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

编 译 器 命 令 行 选 项2.1.81 --guiding_decls, --no_guiding_decls此 选 项 为 C++ 中 的 模 板 函 数 启 用 或 禁 用 定 向 声 明 的 识 别 功 能 。定 向 声 明 是 一 种 函 数 声 明 , 它 与 函 数 模 板 实 例 相 匹 配 , 但 因 其 定 义 从 函 数 模 板派 生 而 没 有 显 式 定 义 。如 果 将 --no_guiding_decls 与 --old_specializations 结 合 使 用 , 则 无 法 识 别 非 成员 模 板 函 数 的 特 化 。 它 将 被 视 为 独 立 函 数 的 定 义 。注 意--guiding_decls 选 项 仅 作 为 不 符 合 C++ 标 准 的 旧 式 源 代 码 的 迁 移 辅 助 选 项 。 不建 议 使 用 此 选 项 。模 式仅 当 源 语 言 为 C++ 时 , 此 选 项 才 有 效 。缺 省 设 置缺 省 选 项 为 --no_guiding_decls。示 例template void f(T){...}void f(int);如 果 被 视 为 定 向 声 明 , 则 f(int) 是 模 板 实 例 。 否 则 , 它 将 是 独 立 函 数 , 因 此 必须 为 其 提 供 定 义 。另 请 参 阅• 第 2-4 页 的 --apcs=qualifer...qualifier• 第 2-95 页 的 --old_specializations,--no_old_specializations2-68 Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348BCNon-Confidential, Unrestricted AccessID090708

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!