Modern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24 @CppCon
Modern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24  @CppCon
Uploaded March 2025 | Updated September 2026, 2 weeks ago
cppcon.org
---

Modern C++ Development - Limitations and Problems in std::function and Similar Constructs: Mitigations and Alternatives - Amandeep Chawla - CppCon 2024
---

In this talk, we will delve into the limitations and challenges associated with using std::function, std::packaged_task, std::apply, and similar constructs in modern C++ development. Despite their utility, these constructs often introduce performance overheads by invoking copies and moves of captured member variables, leading to increased complexity and unexpected behavior. I will share practical examples and common pitfalls encountered in real-world applications. Finally, I will present an alternative approach I have developed to mitigate these issues, offering a more efficient and reliable solution for developers.
---

Slides: github.com/CppCon/CppCon2024/blob/main/Presentations/Limitations_and_Problems_in_StdFunction_and_Similar.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Amandeep Chawla

Amandeep Chawla is a seasoned software engineer with over 20 years of experience in C++. Since graduating in 2002, he has been actively working with C++ throughout his career. In his early years, Amandeep specialized in embedded systems, where he utilized a small subset of C++. This foundational experience provided him with a deep understanding of low-level programming and resource-constrained environments. In 2006, Amandeep joined Adobe, where he has held various roles over the past 17 years. Throughout his tenure at Adobe, he has been extensively involved in projects that heavily rely on C++. As a Senior Computer Scientist - II, Amandeep is currently a valued member of the core team responsible for Adobe CC Libraries. His contributions to the team involve leveraging C++ to develop robust and cross-platform solutions. With his extensive experience in C++, Amandeep has gained valuable insights into the language's strengths, limitations, and best practices. He has a deep appreciation for tackling complex challenges and finding innovative solutions to optimize performance, maintainability, and cross-platform compatibility.
---

CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Modern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24Lightning Talk: Causal Inference for Code Writing AI - Matt K Robinson - CppCon 2025API Structure and Technique: Learnings from C++ Code Review - Ben Deane - CppCon 2025Networks in C++ - Whats Actually Changing? - Ignas Bagdonas - CppCon 2025The Hidden Power of C++23 std::stacktrace for Faster Debugging & Exception Handling - Erez StraussLightning Talk: A Pack as an Optional Parameter - Braden Ganetsky - CppCon 2025The Truth About Being a Programmer CEO - Greg Law - CppCon 2025Announcing CppCon 2025 - Join C++ Developers, C++ Programmers and C++ Experts for the C++ ConferenceLightning Talk: Understanding Data Dependency Chains - Makar Kuznietsov - CppCon 2025CTRACK: C++ Performance Tracking and Bottleneck Discovery - Grischa Hauser - CppCon 2025How to Quickly Convert Floating-Point Numbers in C++ - Cassio Neri - CppCon 2024The Evolution of std::optional - From Boost to C++26 - Steve Downey - CppCon 2025
CppCon |

Modern C++ Development: Limitations and Problems in std::function and Similar Constructs - CppCon 24

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER