SEACAS compilation error with OS X/Clang compiler
Created by: sayerhs
The latest master
branch aborts with the following compilation error on Ioss_PropertyManager.C
[ 56%] Building CXX object packages/seacas/libraries/ioss/src/CMakeFiles/Ioss.dir/Ioss_PropertyManager.C.o
In file included from /Users/sanantha/Documents/nrel/code/nalu/Trilinos/packages/seacas/libraries/ioss/src/Ioss_PropertyManager.C:33:
In file included from /Users/sanantha/Documents/nrel/code/nalu/Trilinos/packages/seacas/libraries/ioss/src/Ioss_Property.h:37:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:627:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/utility:348:16: error:
'operator=' is a private member of 'Ioss::Property'
second = _VSTD::forward<second_type>(__p.second);
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:650:15: note:
in instantiation of member function
'std::__1::pair<std::__1::basic_string<char>, Ioss::Property>::operator='
requested here
{__nc = __v.__cc; return *this;}
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__tree:1200:35: note:
in instantiation of member function
'std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property>::operator=' requested here
__cache->__value_ = *__first;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__tree:1141:9: note:
in instantiation of function template specialization
'std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property>,
std::__1::__map_value_compare<std::__1::basic_string<char>,
std::__1::__value_type<std::__1::basic_string<char>, Ioss::Property>,
std::__1::less<std::__1::basic_string<char> >, true>,
std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property> >
>::__assign_multi<std::__1::__tree_const_iterator<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property>,
std::__1::__tree_node<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property>, void *> *, long> >' requested here
__assign_multi(__t.begin(), __t.end());
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/map:928:21: note:
in instantiation of member function
'std::__1::__tree<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property>,
std::__1::__map_value_compare<std::__1::basic_string<char>,
std::__1::__value_type<std::__1::basic_string<char>, Ioss::Property>,
std::__1::less<std::__1::basic_string<char> >, true>,
std::__1::allocator<std::__1::__value_type<std::__1::basic_string<char>,
Ioss::Property> > >::operator=' requested here
__tree_ = __m.__tree_;
^
/Trilinos/packages/seacas/libraries/ioss/src/Ioss_PropertyManager.C:45:14: note:
in instantiation of member function
'std::__1::map<std::__1::basic_string<char>, Ioss::Property,
std::__1::less<std::__1::basic_string<char> >,
std::__1::allocator<std::__1::pair<const std::__1::basic_string<char>,
Ioss::Property> > >::operator=' requested here
properties = from.properties;
^
/Trilinos/packages/seacas/libraries/ioss/src/Ioss_Property.h:114:18: note:
declared private here
Property & operator=(const Property &); // Do not implement
^
1 error generated.
make[2]: *** [packages/seacas/libraries/ioss/src/CMakeFiles/Ioss.dir/Ioss_PropertyManager.C.o] Error 1
make[1]: *** [packages/seacas/libraries/ioss/src/CMakeFiles/Ioss.dir/all] Error 2
make: *** [all] Error 2
Compiler details:
clang++ -I/usr/local/Cellar/open-mpi/2.0.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/2.0.1/lib -lmpi
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin