18 Aug 19:23
AIX xlC error on static_move_ptr.hpp
From: Gary Fu <gfu <at> saicmodis.com>
Subject: AIX xlC error on static_move_ptr.hpp
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-18 17:24:47 GMT
Subject: AIX xlC error on static_move_ptr.hpp
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-18 17:24:47 GMT
Hi,
Could anyone help why the AIX (5.3) xlC complains on the include file 'static_move_ptr.hpp' and
how to solve the problem if possible ?
I tried on Linux g++ without problem.
Thanks,
Gary
8:52pm > xlC -I $HOME/BOOST/boost_1_36_0 example.cpp -o example
"/home_dir/Ggfu/BOOST/boost_1_36_0/boost/ptr_container/detail/static_move_ptr.hpp", line
182.22: 1540-2611 (S) The name "typename
move_ptrs::enable_if_convertible<TT,T,boost::ptr_container_detail::static_move_ptr
&>::type::type" can only be used to declare a constructor.
#include <boost/ptr_container/detail/static_move_ptr.hpp>
#include <iostream>
#include <string>
using namespace std;
int main() {
//print out the text string, "Hello, World!"
cout << "Hello, World!" << endl;
return 0;
}
(Continue reading)
RSS Feed