Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ Question: const Qualifier or Modifier

C++ Question: const Qualifier or Modifier

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Gunlock
    wrote on last edited by
    #1

    In the context of C++, is there technically a difference between, qualifier and modifier. I have seen the phrase "const modifier" and "const qualifier" used interchangeably. Clarification and/or references would be appreciated. Thanks Mike

    M K 2 Replies Last reply
    0
    • M Michael Gunlock

      In the context of C++, is there technically a difference between, qualifier and modifier. I have seen the phrase "const modifier" and "const qualifier" used interchangeably. Clarification and/or references would be appreciated. Thanks Mike

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      In the document, "ISO/IEC 14882:1998 Programming languages -- C++", section 7.1.5.1 The cv-qualifiers [dcl.type.cv] 1. There are two cv-qualifiers, const and volatile. If a cv-qualifier appears in a decl-specifier-seq, the init-declarator-list of the declaration shall not be empty. Maxwell Chen

      1 Reply Last reply
      0
      • M Michael Gunlock

        In the context of C++, is there technically a difference between, qualifier and modifier. I have seen the phrase "const modifier" and "const qualifier" used interchangeably. Clarification and/or references would be appreciated. Thanks Mike

        K Offline
        K Offline
        Killen
        wrote on last edited by
        #3

        Are qualifier and modifier really c++ syntax? I don't think so. If they're not it's perhaps just names used for functions with a special purpose. "Time to give a Newtonian demonstration, of a bullet, its mass and its acceleration." -Stephen Hawking the gangsta rapper

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups