Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 17:46:55 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459537 - head/games/battletanks
Message-ID:  <201801201746.w0KHktIp032693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Jan 20 17:46:54 2018
New Revision: 459537
URL: https://svnweb.freebsd.org/changeset/ports/459537

Log:
  games/battletanks: unbreak build with Clang 6 (C++14 by default)
  
  In file included from engine/net/scanner.cpp:1:
  In file included from engine/src/config.h:33:
  In file included from ./mrt/xml.h:23:
  /usr/include/c++/v1/map:629:15: error: object of type 'std::__1::pair<const mrt::Socket::addr, Scanner::Host>' cannot be assigned because its copy assignment operator is implicitly deleted
          {__nc = __v.__cc; return *this;}
                ^
  /usr/include/c++/v1/__tree:1645:35: note: in instantiation of member function 'std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>::operator=' requested here
                  __cache->__value_ = *__first;
                                    ^
  /usr/include/c++/v1/__tree:1575:9: note: in instantiation of function template specialization 'std::__1::__tree<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__map_value_compare<const mrt::Socket::addr, std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::less<const mrt::Socket::addr>, true>, std::__1::allocator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host> > >::__assign_multi<std::__1::__tree_const_iterator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__tree_node<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, void *> *, long> >' requested here
          __assign_multi(__t.begin(), __t.end());
          ^
  /usr/include/c++/v1/map:912:21: note: in instantiation of member function 'std::__1::__tree<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::__map_value_compare<const mrt::Socket::addr, std::__1::__value_type<const mrt::Socket::addr, Scanner::Host>, std::__1::less<const mrt::Socket::addr>, true>, std::__1::allocator<std::__1::__value_type<const mrt::Socket::addr, Scanner::Host> > >::operator=' requested here
              __tree_ = __m.__tree_;
                      ^
  engine/net/scanner.cpp:256:8: note: in instantiation of member function 'std::__1::map<const mrt::Socket::addr, Scanner::Host, std::__1::less<const mrt::Socket::addr>, std::__1::allocator<std::__1::pair<const mrt::Socket::addr, Scanner::Host> > >::operator=' requested here
          hosts = _hosts;
                ^
  /usr/include/c++/v1/utility:325:5: note: copy assignment operator is implicitly deleted because 'pair<const mrt::Socket::addr, Scanner::Host>' has a user-declared move constructor
      pair(pair&&) = default;
      ^
  
  Reported by:	pkg-fallout

Modified:
  head/games/battletanks/Makefile   (contents, props changed)

Modified: head/games/battletanks/Makefile
==============================================================================
--- head/games/battletanks/Makefile	Sat Jan 20 17:46:37 2018	(r459536)
+++ head/games/battletanks/Makefile	Sat Jan 20 17:46:54 2018	(r459537)
@@ -20,6 +20,7 @@ LIB_DEPENDS=	libsigc-2.0.so:devel/libsigc++20 \
 		libsmpeg.so:multimedia/smpeg
 
 USES=		openal:al pkgconfig lua:51 python:2.7,build scons tar:bzip2
+USE_CXXSTD=	gnu++98
 USE_LDCONFIG=	yes
 USE_SDL=	image sdl
 MAKE_ARGS=	prefix=${PREFIX} resources_dir=${DATADIR} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801201746.w0KHktIp032693>