mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use std algorithms for copy/move/compare within List containers
ENH: add List resize_fill variant. Fuses resize_nocopy + uniform fill COMP: avoid cast ambiguity when assigning Foam::zero to UList<char>
This commit is contained in:
@ -79,6 +79,13 @@ int main(int argc, char *argv[])
|
||||
List<char> alphabet(istr);
|
||||
|
||||
Info<< "re-read: " << alphabet << nl;
|
||||
|
||||
// Can assign zero?
|
||||
//Fails: alphabet = char(Zero);
|
||||
alphabet = Foam::zero{};
|
||||
|
||||
// alphabet = '@';
|
||||
Info<< "blanked: " << alphabet << nl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user