-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove defines fro const.h andconstants.h, usestatic const` instead * Use std:: for min and max functions * Rename kelvin, degree, deg, rad to celcius2kelvin, kelvin2celsius, rad2deg, deg2rad * Move some functions to real.h and complex.h, create overloads in vector, matrix, matvec * Major cleanup of warnings on qucs-core.
- Loading branch information
Showing
119 changed files
with
990 additions
and
809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
/* | ||
* Check compiler implementation of std::vector::erase iterator type | ||
* - type = [const_iterator | iterator] | ||
* | ||
* Adapted from: | ||
* http://www.gnu.org/software/autoconf-archive/ax_cxx_erase_iterator_type.html | ||
* | ||
* Copyright (c) 2015 Bastien ROUCARIES | ||
* | ||
* Copying and distribution of this file, with or without modification, are | ||
* permitted in any medium without royalty provided the copyright notice | ||
* and this notice are preserved. This file is offered as-is, without any | ||
* warranty. | ||
* | ||
*/ | ||
|
||
#include <vector> | ||
|
||
typedef std::vector<int> intvector; | ||
|
||
struct myvector { | ||
myvector() { v.push_back(1); } | ||
typedef intvector::const_iterator const_iterator; | ||
typedef intvector::iterator iterator; | ||
iterator erase (const_iterator position) { return v.erase(position); }; | ||
iterator erase (const_iterator first, const_iterator last) { return v.erase(first,last); }; | ||
intvector v; | ||
}; | ||
|
||
int main() | ||
{ | ||
myvector v; | ||
v.erase(v.v.begin(),v.v.end()); | ||
return 1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.