Questions tagged [move]

Usually refers to move semantics; consider using that tag instead. Move semantics is a programming language feature that allows a copy operation to be replaced by a more efficient "move" when the source object is a temporary or an otherwise expiring object.

Usually refers to ; consider using that tag instead.

Move semantics is a programming language feature that allows a copy operation to be replaced by a more efficient "move" when the source object is a temporary or an otherwise expiring object.

For more information on move semantics in C++, see Rvalue references and move constructors.

Related tags are , , and .

3461 questions
1
vote
1 answer

MYSQL move some values to new column depending on uniqueness

I have a list of products, product options (eg size) and option values (eg S/M/L/XL) all stored in a single table per the image below: This works fine when a product has only one option set (eg size). As you will see product ID 53 has two types of…
xander
  • 119
  • 1
  • 12
1
vote
2 answers

"Defaulted" move constructor and assignment - weird behaviour

So I have a simple example of a class which has two member variables. And I've declared a copy and a move constructor which are = default, which would force the compiler to generate them for me. Now my question is this. When the move constructor (or…
DeiDei
  • 10,205
  • 6
  • 55
  • 80
1
vote
1 answer

android - Overlay Service Move View

I'm trying to create an always-op-top View And Put Image Inside It.... The Code Run Without any errors. The Problem is On btn1 TouchListener ,When User Touch The Button ImageView Move with it, But ImageView Firstly jump To the end of The Screen then…
Nima Arefi
  • 61
  • 9
1
vote
2 answers

My Shape does not want to move when press a key on OPENGL

I want to make the shape perform a jump while moving horizontally using the sin function but it does not even respond to the 'j' button when it is pressed ? Am still learning Opengl thouh. Any help about where is the mistake? #include…
Hebazzz
  • 15
  • 3
1
vote
4 answers

Transfering ASP Classic Pages from Windows to Linux

Has anyone tried a solution to host ASP classic pages on something else than IIS/Windows? I'm wondering if it would be a good idea to try one of the solutions for that problem. I know about Sun Java System Active Server Pages (or Chilisoft) but…
Loki
  • 29,950
  • 9
  • 48
  • 62
1
vote
0 answers

Verbose compilation diagnostic with C++11

I am converting C++ code to C++11. Since C++11 supports move construction I am replacing methods like void foo(const Bar& obj); with void foo(Bar obj); in places where I think it makes sense, for example in assignment operators. Unfortunately, the…
hochl
  • 12,524
  • 10
  • 53
  • 87
1
vote
1 answer

How to rotate sprite and move

How do I move sprite of sprite's front direction. I've andengine gles 2. I tried add sprite and I gave speed but sprite just left, top, bottom and right I wanna sprite can cross direction. i.e. when I rotate sprite's front, move that direction. How…
1
vote
2 answers

Exception while moving files

Hey so lately i've been trying to move files from one folder to another but errors keep coming up. Both the loacation and destination folders are created, location has few .txt files Here's what i've tried: string path = @"C:\TESTmove\path"; string…
1
vote
1 answer

Python Tkinter canvas.tag_bind()

I've been writing this code on Python using Tkinter also, that at the end of the day, i'll be able to click on a picture ( and not on a specific dot with a x,y in the picture's borders, but anywhere in the entire picture's borders ) and then click…
Rinrin
  • 33
  • 1
  • 3
1
vote
1 answer

jquery, mouseenter to move down image

I am new to JS, I am hardworking to improve my skills with JS, so far everything went well, till now, I have to move the img in the nav , when mouse enters it moves down and when it leaves back up. https://www.youtube.com/embed/8qKRf0cg3Co I have…
Kevin
  • 15
  • 5
1
vote
2 answers

std::move one vector to another, addresses not updated

I want to move one vector to another without a copy. I found this STL vector: Moving all elements of a vector. I wanted to test it out so I coded up a simple example below. C++ compiler version: g++ 5.1.0 on (Ubuntu 5.1.0-0ubuntu11~14.04.1) I am…
bantl23
  • 879
  • 2
  • 9
  • 8
1
vote
1 answer

Difference between "addi" and "add" for pseudoinstruction "move" in MIPS?

For this pseudoinstruction: move $rt, $rs Are both the addi and add assembly code acceptable? So could I use either add $rt, $rs, $0 or addi $rt, $rs, $0 ? Edit: I think I made a mistake with addi add $rt, $rs, $0 would be the same as addi $rt,…
izelkay
  • 47
  • 2
  • 2
  • 7
1
vote
1 answer

VB.net How to make all the borderless forms of a project use the same common code given below to move the form without repetation?

This code i found i stackoverflow to move a borderless form in vb.net. I want to implement it for all the 10 forms of my project and don't want to put it in every form's code. Is there a way to use the single instance of this code for all forms?…
Rahul Penn
  • 11
  • 1
1
vote
3 answers

Why Won't My Div Move?

I am trying to get this fat div on some moving, but it won't! Help!