Issue 1 in beagle: Build errors

5 views
Skip to first unread message

bea...@googlecode.com

unread,
Oct 13, 2013, 1:12:46 PM10/13/13
to openbeagle...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1 by olof.tho...@gmail.com: Build errors
http://code.google.com/p/beagle/issues/detail?id=1

What steps will reproduce the problem?
When building I get the following errors:

OpenBEAGLE-4.0.0-alpha2-Source/src/beagle/RouletteT.hpp:89:3: error: use of
undeclared identifier 'push_back'
push_back(std::make_pair(inWeight,inValue));

OpenBEAGLE-4.0.0-alpha2-Source/src/beagle/ReplacementStrategyOp.cpp:72:15:
note:
in instantiation of member function 'Beagle::RouletteT<unsigned
int>::insert' requested here
outRoulette.insert(i++,
lChild->getBreederOp()->getBreedingProba(lChild->get...

/usr/include/c++/4.2.1/bits/stl_vector.h:600:7: note: must qualify
identifier to find this
declaration in dependent base class
push_back(const value_type& __x)
^

What version of the product are you using? On what operating system?
OpenBEAGLE-4.0.0-alpha2, OSX (10.8.5)

Please provide any additional information below.

1 error generated.
make[2]: ***
[CMakeFiles/openbeagle.dir/src/beagle/ReplacementStrategyOp.cpp.o] Error 1
make[1]: *** [CMakeFiles/openbeagle.dir/all] Error 2
make: *** [all] Error 2


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

bea...@googlecode.com

unread,
Oct 23, 2013, 2:50:46 AM10/23/13
to openbeagle...@googlegroups.com

Comment #1 on issue 1 by olof.tho...@gmail.com: Build errors
http://code.google.com/p/beagle/issues/detail?id=1

The solution is to change:

push_back(std::make_pair(inWeight,inValue));

to:

this->push_back(std::make_pair(inWeight,inValue));
Reply all
Reply to author
Forward
0 new messages