std::vector<std::vector<double>> testInput2DVector;
std::vector<double> testInputVector;
std::vector<std::vector<double>> testOutput2DVector;
for (int i = 0; i > 100; i++) {
testInputVector[0] = 1;
testInputVector[1] = 0;
testOutput2DVector[i][0] = .5f;
//testInput2DVector[i].emplace_back(testInputVector); where the error
// was, though now its line 1330 because i did some editing of my code
}
however i think the error log has changed even more. (mind you, i did comment out the line where i was passing a vector as a parameter). it was also the only occurence of emplace_back in my code.
********************************
Not sending analytics for this command.
Compiled src/main.cpp [ERRORS]
In file included from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\arm-none-eabi\thumb\v7-a+simd\softfp\bits\c++allocator.h:33,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\allocator.h:46,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\string:41,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\stdexcept:39,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\system_error:41,
from src/main.cpp:1:
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\ext\new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = double; _Args = {std::vector<double, std::allocator<double> >&}; _Tp = double]':
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = double; _Args = {std::vector<double, std::allocator<double> >&}; _Tp = double; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<double>]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\vector.tcc:115:30: required from 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::vector<double, std::allocator<double> >&}; _Tp = double; _Alloc = std::allocator<double>; std::vector<_Tp, _Alloc>::reference = double&]'
src/main.cpp:1330:53: required from here
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\ext\new_allocator.h:156:4: error: cannot convert 'std::vector<double>' to 'double' in initialization
156 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\char_traits.h:39,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\string:40,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\stdexcept:39,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\system_error:41,
from src/main.cpp:1:
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h: In instantiation of 'static _OI std::__copy_move<false, false, std::random_access_iterator_tag>::__copy_m(_II, _II, _OI) [with _II = const pros::Motor*; _OI = pros::Motor*]':
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:472:30: required from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:506:42: required from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:514:31: required from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = __gnu_cxx::__normal_iterator<const pros::Motor*, std::vector<pros::Motor> >; _OI = __gnu_cxx::__normal_iterator<pros::Motor*, std::vector<pros::Motor> >]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:569:7: required from '_OI std::copy(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<const pros::Motor*, std::vector<pros::Motor> >; _OI = __gnu_cxx::__normal_iterator<pros::Motor*, std::vector<pros::Motor> >]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\vector.tcc:238:31: required from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = pros::Motor; _Alloc = std::allocator<pros::Motor>]'
src/main.cpp:97:17: required from here
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:380:18: error: use of deleted function 'pros::Motor& pros::Motor::operator=(const pros::Motor&)'
380 | *__result = *__first;
| ~~~~~~~~~~^~~~~~~~~~
In file included from ./include/api.h:73,
from ./include/main.h:37,
from src/main.cpp:13:
./include/pros/motors.hpp:27:7: note: 'pros::Motor& pros::Motor::operator=(const pros::Motor&)' is implicitly deleted because the default definition would be ill-formed:
27 | class Motor {
| ^~~~~
./include/pros/motors.hpp:27:7: error: non-static const member 'const uint8_t pros::Motor::_port', cannot use default assignment operator
In file included from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\char_traits.h:39,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\string:40,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\stdexcept:39,
from c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\system_error:41,
from src/main.cpp:1:
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h: In instantiation of 'static _OI std::__copy_move<false, false, std::random_access_iterator_tag>::__copy_m(_II, _II, _OI) [with _II = pros::Motor*; _OI = pros::Motor*]':
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:472:30: required from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:506:42: required from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:514:31: required from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:569:7: required from '_OI std::copy(_II, _II, _OI) [with _II = pros::Motor*; _OI = pros::Motor*]'
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\vector.tcc:243:17: required from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = pros::Motor; _Alloc = std::allocator<pros::Motor>]'
src/main.cpp:97:17: required from here
c:\users\manny\appdata\roaming\code\user\globalstorage\sigbots.pros\install\pros-toolchain-windows\usr\arm-none-eabi\include\c++\10.3.1\bits\stl_algobase.h:380:18: error: use of deleted function 'pros::Motor& pros::Motor::operator=(const pros::Motor&)'
380 | *__result = *__first;
| ~~~~~~~~~~^~~~~~~~~~
make: *** [common.mk:270: bin/main.cpp.o] Error 1