Thread: 'operator =' is ambiguous

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    1

    'operator =' is ambiguous

    Hallo
    i am new user of VC++ 2005. i am trying to run a old program ,which is writtin in VC++ 6.0. Now i have a problem by compiling this old program. I have a error

    error C2593: 'operator =' is ambiguous

    BaseType=char,
    StringTraits=StrTraitMFC<char>

    I think ,it is only a version conflict,but i dont know how to remove this error.
    thank in advance

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    split?

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Quote Originally Posted by robwhit View Post
    split?
    Indeed

    Can you post more code, so we can compile it as well ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    Usually this can be solved by casting the right hand side to the left hand side type.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  5. #5
    Registered User
    Join Date
    May 2008
    Location
    Paris
    Posts
    248
    Or overload another assignment operator..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Help!! VC++ Problems
    By Astroboy in forum C++ Programming
    Replies: 2
    Last Post: 03-08-2004, 01:24 AM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM
  5. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM