- 🌏 The official ISO C++ Get Started! page
- 🎥 Herb Sutter: (Not Your Father’s) C++
- 🎥 Beginning with C++ by Jens Weller
// code to test warning level of C++ translation unit; | |
// works with compilers which support `-Wpedantic` flag | |
// any warning level: 'extern' variable has an initializer [-Wextern-initializer] | |
// -Wall: "unused variable 'n' [-Wunused-variable]" | |
// -Wextra: "missing field 'b' initializer [-Wmissing-field-initializers]" | |
extern struct { int a, b; } n = {sizeof(void(*)(int))}; | |
// -Wpedantic: "variable length arrays are a C99 feature [-Wvla-extension]" | |
int evoke_pedantic_warning_vla(int n) { int a[n]; return a[3]; } |
// Copyright John McFarlane 2018. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file ../LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// mechanically retrieved, single-header version of CNL library | |
// https://github.com/johnmcfarlane/cnl | |
#if ! defined(CNL_COMPLETE_H) |
// Copyright John McFarlane 2018. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file ../LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// mechanically retrieved, single-header version of CNL library | |
// https://github.com/johnmcfarlane/cnl | |
#if ! defined(CNL_COMPLETE_H) |
// Copyright John McFarlane 2018. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file ../LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// mechanically retrieved, single-header version of CNL library | |
// https://github.com/johnmcfarlane/cnl | |
#if ! defined(CNL_COMPLETE_H) |
#ifndef DATE_H | |
#define DATE_H | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2015, 2016, 2017 Howard Hinnant | |
// Copyright (c) 2016 Adrian Colomitchi | |
// Copyright (c) 2017 Florian Dang | |
// Copyright (c) 2017 Paul Thompson | |
// |
(Line 1) Line with double space
(Line 2) Line with backslash
(Line 3) Line without either
(Line 4) and continuation of previous line
// Copyright John McFarlane 2017. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file ../LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// mechanically retrieved, single-header version of CNL library | |
// https://github.com/johnmcfarlane/cnl | |
#if ! defined(CNL_COMPLETE_H) |
Document number: DXXXXR0
Date: 2017-09-19
Reply-to: John McFarlane, cnl@john.mcfarlane.name
Reply-to: Louis Dionne, ldionne.2@gmail.com
Audience: SG6, SG14, LEWG