Skip to content
Wednesday, April 29, 2026

Nectarpost

Best Learning Platform

  • Home
  • Technology
    • C++
      • Thread
      • Cpp11
    • C#
    • Azure
  • Business
  • Features
Home » Blog » Bug fixes in Initialization : C++ 14
C++

Bug fixes in Initialization : C++ 14

January 17, 2022July 17, 2022 nectarpost

1. Aggregates can have default memory initializers (DMI).


struct Foo {
	    int i=0;
		int j=0;
	};
	
Foo foo{1,2};   //ok, fixed in C++ 14.

2. auto keyword fix

auto i{3};  //std::initializer_list<int> in C++ 11, where as C++14 it will be an int.

auto i = {3}; //std::initializer_list<int> in C++ 11, always std::initializer_list<int> in C++ 14.
aggregate, auto, C++14
Share
Facebook Twitter Pinterest Linkedin

Post navigation

Uniform Initialization ( List Initialization ): C++ 11
Bug fixes in Initialization : C++ 17

You May Like This --

  • Cpp Program

    default and delete with example in C++

    June 18, 2025June 24, 2025
  • Cpp Program

    final and override with an example in C++

    June 18, 2025June 24, 2025
  • Cpp Program

    Range-Based For Loop with an example

    June 18, 2025June 24, 2025

Technology

multithreading
Cpp11

Multithreading in C++ — A Complete Beginner to Advanced Guide 🌳

June 18, 2025July 24, 2025
  • Cpp Program
    C++

    default and delete with example in C++

    June 18, 2025June 24, 2025
  • Cpp Program
    C++

    final and override with an example in C++

    June 18, 2025June 24, 2025
  • Cpp Program
    C++ Other

    Range-Based For Loop with an example

    June 18, 2025June 24, 2025
  • Cpp Program
    C++

    static_assert with an example in C++

    June 18, 2025June 24, 2025

Business

Scrum Teams
Scrum

Best 8 Golden Theories for Business and Scrum Teams

July 2, 2025July 7, 2025
  • Raise-Pre-Seed-Funding
    Business Features

    Top 10 reasons to understand Seed Funding

    January 7, 2021January 16, 2021
  • Indian startup
    Business Startup

    Is Indian startup Practically raised $4 million?

    January 6, 2021February 24, 2023
  • ipl bidding
    Business Features Sports

    IPL bidding and Money Making?

    January 6, 2021January 17, 2021
  • Series-A-B-C-Funding
    Business Features

    What are the 3 steps in series funding A, B and C?

    February 23, 2020February 22, 2021

General

Mohammed iliyas

About

Blog

Privacy Policy

Recent Posts

  • Best 8 Golden Theories for Business and Scrum Teams
  • Multithreading in C++ — A Complete Beginner to Advanced Guide 🌳
  • default and delete with example in C++
  • final and override with an example in C++
  • Range-Based For Loop with an example
  • static_assert with an example in C++
All Rights Reserved 2021.
Proudly powered by WordPress | Theme: Refined Magazine by Candid Themes.