Thread: what POINT am I missing ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    I don't see how this could compile, that rvalue is type-ambiguous...

  2. #2
    Registered User
    Join Date
    Apr 2008
    Location
    Australia
    Posts
    55
    So wait, now I'm (really) confused .......

    I currently have wxDevC++ 7.2.0.2 installed, with this issue. I also have another separate program/compile issue that I'm trying to deal with (linker related perhaps), so it's quite possible I may have an issue with my compiler, sssoooo.......

    Is the initial code I posted legal or not? The book I have was printed in 2005, is someone please able to clarify


    Thanks!!

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by BMJ View Post
    I don't see how this could compile, that rvalue is type-ambiguous...
    Why is it ambiguous? It should be a initializer_list with int.
    In C++03, it's simply illegal.
    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. Drawing Program
    By Max_Payne in forum C++ Programming
    Replies: 21
    Last Post: 12-21-2007, 05:34 PM
  2. Classes & Collections
    By Max_Payne in forum C++ Programming
    Replies: 7
    Last Post: 12-11-2007, 01:06 PM
  3. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  4. Help with a Class
    By maloy in forum C++ Programming
    Replies: 12
    Last Post: 09-27-2002, 08:41 PM
  5. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 12:06 AM