C++ : Why does this compile when passing a lambda in direct initialization and assignment but not wi

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=OS1J45xCqBM



Duration: 1:05
0 views
0


C++ : Why does this compile when passing a lambda in direct initialization and assignment but not with copy initialization?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

I have a hidden feature that I promised to tell you about.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Then, type the letters 'awesome' on your keyboard as the next step.
You will see a flashing rainbow instead of a regular progress bar on YouTube.

A brief introduction of myself,
Nice to meet you, I am Delphi.
I am at your disposal to help you with any questions you have.
C++ : Why does this compile when passing a lambda in direct initialization and assignment but not with copy initialization?
Please feel free to comment or chat with me for more detailed information.
If you have an answer or any additional information on the answer, please leave a comment below.
A 'heart' from me will be given to show my gratitude for your contribution.
not copy passing in this but Why assignment initialization? : with compile C++ does lambda and initialization a direct when




Other Videos By Hey Delphi


2023-04-15jQuery : How to disable all AJAX requests in a page with jQuery and Javascript ?
2023-04-15HTML : How can I implement eraser function in SVG?
2023-04-15C++ : How to use "global static" variable in matlab function called in c
2023-04-15MySQL : How to change MySQL table names in Linux server to be case insensitive?
2023-04-15HTML : how do i use multiple content tag in single polymer element?
2023-04-15Array : How to use string-array with plurals?
2023-04-15PYTHON : How to use a dot "." to access members of dictionary?
2023-04-15HTML : How to append source html to a DOMElement in PHP?
2023-04-15MySQL : How to prevent trying to create the same user twice?
2023-04-15Array : How to detect if a variable is an array
2023-04-15C++ : Why does this compile when passing a lambda in direct initialization and assignment but not wi
2023-04-15C++ : How to mock method returning istream&?
2023-04-15C++ : Why is "greater than" not working with char type?
2023-04-15C++ : How to find the "real" error?
2023-04-15NodeJS : How to get current url in view in expressjs
2023-04-15R : How can I scale nested plot_grid to the same size?
2023-04-15C++ : what the difference between map and hashmap in STL
2023-04-15NodeJS : How to escape mysql special characters with sockets.io/node.js/javascript
2023-04-15R : Why does "vectorizing" this simple R loop give a different result?
2023-04-15Array : How to find the shortest path in 2D Array with multiple endpoints?
2023-04-15NodeJS : how to show all console.log from node.js in heroku?