Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

volatile declaration problems

Status
Not open for further replies.

Skatanic

Programmer
Jun 25, 2002
37
US
I am using threads to update an STL multimap holding my data. Since they will be concurrent I am trying to declare the multimap as volatile. However this produces a compiler error on the line when I call the insert function for the multimap. When I remove that keyword, it compiles fine. My question is if there is a way to declare it volatile and still use the multimap or if not declaring it volatile will harm my program in any way?

Thanks,
Skatanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top