Like Tree2Likes
  • 2 Post By antred

Getting a const correctness error when using "sort" from STL.

This is a discussion on Getting a const correctness error when using "sort" from STL. within the C++ Programming forums, part of the General Programming Boards category; [EDIT] Problem is solved so deleting the question so no one wastes time trying to solve it. [/EDIT]...

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    7

    Getting a const correctness error when using "sort" from STL.

    [EDIT]
    Problem is solved so deleting the question so no one wastes time trying to solve it.
    [/EDIT]
    Last edited by Ralph Wiggum; 06-24-2012 at 12:48 PM.

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    7
    Edit. I just read my own post and realized I did not have enough const qualifiers in there. I added the rest in and everything works. I don't see a "solved" button to mark solved, but this is now solved. Thanks.

  3. #3
    Registered User antred's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    255
    Quote Originally Posted by Ralph Wiggum View Post
    Edit. I just read my own post and realized I did not have enough const qualifiers in there. I added the rest in and everything works. I don't see a "solved" button to mark solved, but this is now solved. Thanks.
    A "solved" button is a horrible idea anyway because many times the asker will not be qualified to decide whether the problem is really solved or merely apparently solved.
    GReaper and Salem like this.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,022
    A message board does merely exist for the purpose of you asking a question, but also as a basis of knowledge for others to look at.
    So, if you would be so kind as to in the future post your question (and not edit it out after solving it), and posting the answer, if relevant, it would be great.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-15-2009, 04:57 AM
  2. Replies: 17
    Last Post: 12-15-2006, 11:02 AM
  3. Replies: 9
    Last Post: 07-07-2006, 12:03 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21