Modify

Ticket #6738 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

Shadowed variable warning.

Reported by: davidrogers@… Owned by: jsiek
Milestone: To Be Determined Component: concept_check
Version: Boost 1.48.0 Severity: Cosmetic
Keywords: warning Cc:

Description

Turning on -Wshadow will cause a warning to be thrown at concept_check.hpp:1055.

void const_constraints(const C& c)

warning: Declaration shadows a field of Collection<C>

In a large project, this gets compounded every time that a boost header is included. Which makes it difficult to find warnings in my own code.

Attachments

Change History

comment:1 Changed 2 years ago by giantchen@…

A patch can be found in #5996 .

comment:2 Changed 2 years ago by jeffrey.hellrung

(In [78501]) [concept_check] "Shadowed variable warning" (refs #6738)

comment:3 Changed 2 years ago by jeffrey.hellrung

  • Status changed from new to closed
  • Resolution set to fixed

(In [78702]) [concept_check] "Shadowed variable warning" (fixes #6738)

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.