Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

c++11

What are the advantages of list initialization (using curly braces)?

by IT Nursery

Basically copying and pasting from Bjarne Stroustrup’s “The C++ Programming Language 4th Edition”: List initialization does not allow narrowing (§iso.8.5.4). That is: An … Read more

Tags c, c++11, initialization, list-initialization, syntax

std::function vs template

by IT Nursery

Thanks to C++11 we received the std::function family of functor wrappers. Unfortunately, I keep hearing only bad things about these new additions. The … Read more

Tags c, c++11, std-function, templates

C++11 std::threads vs posix threads

by IT Nursery

Why should I prefer one or another in practice? What are technical differences except that std::thread is a class? Best Answer 4

Tags c, c++11, multithreading, pthreads

What does iota of std::iota stand for?

by IT Nursery

I’m assuming the “i” is increment and the “a” is assign, but I could not figure out or find the answer. Also, it … Read more

Tags c, c++11, naming-conventions

What happens to a detached thread when main() exits?

by IT Nursery

Assume I’m starting a std::thread and then detach() it, so the thread continues executing even though the std::thread that once represented it, goes … Read more

Tags c, c++11, exit, multithreading, stdthread

Thread pooling in C++11

by IT Nursery

Relevant questions: About C++11: C++11: std::thread pooled? Will async(launch::async) in C++11 make thread pools obsolete for avoiding expensive thread creation? About Boost: C++ … Read more

Tags c, c++11, multithreading, stdthread, threadpool

The new syntax “= default” in C++11

by IT Nursery

I don’t understand why would I ever do this: struct S { int a; S(int aa) : a(aa) {} S() = default; }; … Read more

Tags c, c++11

std::enable_if to conditionally compile a member function

by IT Nursery

I am trying to get a simple example to work to understand how to use std::enable_if. After I read this answer, I thought … Read more

Tags c, c++11, g++, templates

Is the safe-bool idiom obsolete in C++11?

by IT Nursery

This answer of @R. Martinho Fernandes shows, that the safe-bool idiom is apperently deprecated in C++11, as it can be replaced by a … Read more

Tags c, c++-faq, c++11, deprecated, safe-bool-idiom

Using member variable in lambda capture list inside a member function

by IT Nursery

The following code compiles with gcc 4.5.1 but not with VS2010 SP1: #include <iostream> #include <vector> #include <map> #include <utility> #include <set> #include … Read more

Tags c, c++11, lambda, visual-studio-2010
Older posts
Page1 Page2 … Page12 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery