Top "Temporary" questions

The concept of any object being ephemeral, for example temporary files or object that will only exist for a short period of time.

Temporarily switch working copy to a specific Git commit

How to switch to specific Git commit without losing all the commits made after it? I want that local files …

git commit temporary
How come a non-const reference cannot bind to a temporary object?

Why is it not allowed to get non-const reference to a temporary object, which function getx() returns? Clearly, this is …

c++ reference constants temporary c++-faq
MySQL: Auto increment temporary column in select statement

How do I create and auto increment a temporary column in my select statement with MySQL? Here is what I …

mysql auto-increment temporary
Using index, using temporary, using filesort - how to fix this?

I'm working on a event tracking system which uses a handful of lookup tables as well as the primary logging …

mysql optimization select temporary filesort
Does a const reference class member prolong the life of a temporary?

Why does this: #include <string> #include <iostream> using namespace std; class Sandbox { public: Sandbox(const string&…

c++ temporary ctor-initializer const-reference
Creating temporary view from a temporary table in SQL Server

I have a temporary table and I would like to create a temporary view over this temporary table. Is it …

sql-server view temporary
Inserting into a temporary table from an Execute command

I need to insert data from a select statement into a temporary table using the execute command. if OBJECT_ID(…

sql sql-server insert execute temporary
Returning a c++ std::vector without a copy?

Is it possible to return a standard container from a function without making a copy? Example code: std::vector<…

c++ stl copy return-value temporary
invalid initialization of non-const reference of type 'int&' from a temporary of type 'int'

#include<iostream> using namespace std; int fun(int &x) { return x; } int main() { cout << fun(10); …

c++ reference temporary lvalue rvalue
What's the best way to have a "temporary" commit in git?

Say I have a project with two branches master and dev. I have a bunch of commits on dev for …

git temporary