#include <vector> #include <iostream> int main() { std::vector<bool> bv; bv.push_back(true); bv.push_back(false); std::cout << &bv[1] << std::endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:9:20: error: taking address of temporary [-fpermissive]
std::cout << &bv[1] << std::endl;
^
Standard output is empty