《皇帝的新装》(丹麥語:Kejserens nye Klæder,英语:The Emperor's New Clothes),也译作《国王的新衣》,安徒生童話系列中的故事,首次發表於1837年,收录在《讲给孩子们听的故事(英语:Fairy Tales Told for Children. First Collection.)》中。
原型为流传于14世纪西班牙卡斯提地区的一则故事,指一个摩尔人的国王被三名骗子愚弄,说他们为皇帝编织的一件华丽的衣裳是私生子看不到的,后来皇帝驱车到市集向众人展示这件想象中的新衣服时,被一名有意挑衅的非洲人揭穿。5个世纪后,安徒生重写故事,使之成为一个家喻户晓的故事。安徒生基本完整保留了原作者唐·胡安·曼努(英语:Juan Manuel, Prince of Villena)(Don Juan Manuel)的故事情节,只是将看不见布料的人从私生子改为愚蠢的人,将揭发者从一个非洲人改为一个天真的小孩,并经过润色和文字加工。
10
1
I have a function that searches a vector of iterators and returns the iterator if its names matches a string passed as an argument. koalaGraph::PVertex lookUpByName(std::string Name, std::vector<koalaGraph::PVertex>& Vertices) { for (size_t i = 0; i < Vertices.size(); i++) { if(Vertices[i]->info.name == Name) return Vertices[i]; } } My question is how can I implement this as a lambda, to use it in connection with std::find_if ? I'm trying this: std::vector<koalaGraph::PVertex> V; std::string Name; std::find_if(V.begin(), V.end(), [&Name]() {return Name == V->info.name;}) But it says that V an enclosing-function local variable cannot be referenced in a lambda body unless it is in the capture list.
...
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
4
1
I am installing hackintosh in virtualbox on ubuntu, but when I try to start, I get above error. Here are some more details, Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} How can I solve this issue?
16.04 virtualbox
share | improve this question
asked Oct 22 '17 at 15:10
luv.preet luv.preet
1,502 4 13 29
...