Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' #142

Closed
yurivict opened this issue Mar 29, 2020 · 1 comment

Comments

@yurivict
Copy link

clang-10 fails:

/wrkdirs/usr/ports/benchmarks/libcelero/work/Celero-2.6.0/src/TestFixture.cpp:138:18: error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' [-Werror,-Wrange-loop-construct]
                for(const auto udm : udms)
                               ^
/wrkdirs/usr/ports/benchmarks/libcelero/work/Celero-2.6.0/src/TestFixture.cpp:138:7: note: use reference type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement> &' to prevent copying
                for(const auto udm : udms)
                    ^~~~~~~~~~~~~~~~
                               &
1 error generated.

Log: http://beefy17.nyi.freebsd.org/data/head-i386-default/p529299_s359382/logs/libcelero-2.6.0.log (IPv6 URL)

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 29, 2020
Fix breakage with clang10 by switching to clang-8:
error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>'
DigitalInBlue/Celero#142

Reported by:	fallout


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@529772 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 29, 2020
Fix breakage with clang10 by switching to clang-8:
error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>'
DigitalInBlue/Celero#142

Reported by:	fallout
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this issue Mar 29, 2020
Fix breakage with clang10 by switching to clang-8:
error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>'
DigitalInBlue/Celero#142

Reported by:	fallout


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@529772 35697150-7ecd-e111-bb59-0022644237b5
Shachlan added a commit to Shachlan/Celero that referenced this issue Oct 11, 2020
@Shachlan
Copy link
Contributor

#146

DigitalInBlue pushed a commit that referenced this issue Oct 12, 2020
This fixes the compilation error in
#142
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this issue Jan 10, 2024
Fix breakage with clang10 by switching to clang-8:
error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>'
DigitalInBlue/Celero#142

Reported by:	fallout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants