Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Error C2102 '&' requires l-value #3

Open
StefanG3D opened this issue Oct 21, 2021 · 0 comments
Open

Error C2102 '&' requires l-value #3

StefanG3D opened this issue Oct 21, 2021 · 0 comments

Comments

@StefanG3D
Copy link

I had compiled this sample last year successfully.
Now VS2019 16.11 reports 42 errors on my new rig:

Severity Code Description Project File Line Suppression State
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 285
Error C2102 '&' requires l-value (compiling source file Render.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 87
Error C2102 '&' requires l-value (compiling source file Render.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 89
Error C2102 '&' requires l-value (compiling source file Render.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 140
Error C2102 '&' requires l-value (compiling source file Render.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 159
Error C2102 '&' requires l-value (compiling source file Particles.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 87
Error C2102 '&' requires l-value (compiling source file Particles.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 89
Error C2102 '&' requires l-value (compiling source file Particles.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 140
Error C2102 '&' requires l-value (compiling source file Particles.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 159
Error C2102 '&' requires l-value (compiling source file Compute.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 87
Error C2102 '&' requires l-value (compiling source file Compute.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 89
Error C2102 '&' requires l-value (compiling source file Compute.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 140
Error C2102 '&' requires l-value (compiling source file Compute.cpp) Particles C:\Downloads\Multi-Adapter-Particles-master\include\D3D12GpuTimer.h 159
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 568
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 570
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 694
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 696
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 702
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 704
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 717
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 743
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 746
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 810
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 867
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Render.cpp 897
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 232
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 234
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 277
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 278
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 286
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 339
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 346
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 367
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 368
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 393
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 400
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 525
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 527
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 533
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 535
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 554
Error C2102 '&' requires l-value Particles C:\Downloads\Multi-Adapter-Particles-master\Particles\Compute.cpp 1044

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant