UFO: Alien Invasion Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #5337  -  Compile issue on Mac OS 10.9: error: no viable overloaded '='
Posted Jun 25, 2014 - updated Jun 27, 2014
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Michael
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    8 hours
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png MacOSX
  • Architecture
    icon_customdatatype.png Not determined
Issue description
In file included from src/tools/radiant/radiant/ui/colourscheme/ColourSchemeManager.cpp:1: In file included from src/tools/radiant/radiant/ui/colourscheme/ColourSchemeManager.h:3: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:439: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/algorithm:626: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/utility:294:15: error: no viable
      overloaded '='
        first = __p.first;
        ~~~~~ ^ ~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:610:15: note: in instantiation
      of member function 'std::__1::pair<const std::__1::basic_string<char>, ui::ColourItem>::operator=' requested here
        {__nc = __v.__cc; return *this;}
              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1263:35: note: in
      instantiation of member function 'std::__1::__value_type<const std::__1::basic_string<char>, ui::ColourItem>::operator='
      requested here
                __cache->__value_ = *__first;
                                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:1204:9: note: in
      instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const std::__1::basic_string<char>,
      ui::ColourItem>, std::__1::__map_value_compare<const std::__1::basic_string<char>, std::__1::__value_type<const
      std::__1::basic_string<char>, ui::ColourItem>, std::__1::less<const std::__1::basic_string<char> >, true>,
      std::__1::allocator<std::__1::__value_type<const std::__1::basic_string<char>, ui::ColourItem> >
      >::__assign_multi<std::__1::__tree_const_iterator<std::__1::__value_type<const std::__1::basic_string<char>, ui::ColourItem>,
      std::__1::__tree_node<std::__1::__value_type<const std::__1::basic_string<char>, ui::ColourItem>, void *> *, long> >' requested
      here
        __assign_multi(__t.begin(), __t.end());
        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:885:21: note: in instantiation
      of member function 'std::__1::__tree<std::__1::__value_type<const std::__1::basic_string<char>, ui::ColourItem>,
      std::__1::__map_value_compare<const std::__1::basic_string<char>, std::__1::__value_type<const std::__1::basic_string<char>,
      ui::ColourItem>, std::__1::less<const std::__1::basic_string<char> >, true>, std::__1::allocator<std::__1::__value_type<const
      std::__1::basic_string<char>, ui::ColourItem> > >::operator=' requested here
            __tree_ = __m.__tree_;
                    ^
src/tools/radiant/radiant/ui/colourscheme/ColourScheme.h:38:7: note: in instantiation of member function 'std::__1::map<const
      std::__1::basic_string<char>, ui::ColourItem, std::__1::less<const std::__1::basic_string<char> >,
      std::__1::allocator<std::__1::pair<const std::__1::basic_string<char>, ui::ColourItem> > >::operator=' requested here
class ColourScheme {
      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:1228:19: note: candidate
      function not viable: 'this' argument has type 'const std::__1::basic_string<char>', but method is not marked const
    basic_string& operator=(const basic_string& __str);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:1231:19: note: candidate
      function not viable: 'this' argument has type 'const std::__1::basic_string<char>', but method is not marked const
    basic_string& operator=(basic_string&& __str)
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:1235:45: note: candidate
      function not viable: 'this' argument has type 'const std::__1::basic_string<char>', but method is not marked const
    _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
                                            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:1236:19: note: candidate
      function not viable: 'this' argument has type 'const std::__1::basic_string<char>', but method is not marked const
    basic_string& operator=(value_type __c);
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/string:1239:19: note: candidate
      function not viable: 'this' argument has type 'const std::__1::basic_string<char>', but method is not marked const
    basic_string& operator=(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size());}
                  ^
14 warnings and 1 error generated. make1: *** debug-darwin-i386/uforadiant/tools/radiant/radiant/ui/colourscheme/ColourSchemeManager.cpp.o Error 1 make: *** darwin-config.h Error 2 make: *** Deleting file `darwin-config.h'
Steps to reproduce this issue
Run Make on master branch in MacOS 10.9