-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftopic: preprocessorRelated to sketch preprocessingRelated to sketch preprocessingtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Using IDE 1.8.2
After doing up some code for a forum user, I did a test compile. When I came back to my PC, flames were shooting out the CD drive, and the bit bucket under my desk was overflowing with nibbles of 1's.
To solve the issue, I now have to manually add setup and loop prototypes.
void setup();
void loop();
template< uint16_t nBuffSize >
class Foo{
public:
template< uint16_t N >
Foo &operator +=( const Foo<N> &ref ){
//...
return *this;
}
};
Foo<64> a;
Foo<32> b;
void setup(){
a += b;
}
void loop(){}
The preprocessor adds the setup and loop prototypes in between:
template< uint16_t N >
and
Foo &operator +=( const Foo<N> &ref ){
...in the middle of the class.
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftopic: preprocessorRelated to sketch preprocessingRelated to sketch preprocessingtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project