fork(1) download
  1. #include <iostream>
  2.  
  3. struct gatt_db_attribute {};
  4.  
  5. bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active, int fd=0);
  6. bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active, int fd=0);
  7.  
  8.  
  9. int main() {
  10. gatt_db_service_set_active(NULL, true);
  11.  
  12. gatt_db_service_set_active(NULL, true, 3);
  13.  
  14. }
  15.  
  16. bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active, int fd) {
  17. // stuff
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:88: error: default argument given for parameter 3 of 'bool gatt_db_service_set_active(gatt_db_attribute*, bool, int)' [-fpermissive]
 bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active, int fd=0);
                                                                                        ^
prog.cpp:5:6: note: previous specification in 'bool gatt_db_service_set_active(gatt_db_attribute*, bool, int)' here
 bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active, int fd=0);
      ^
stdout
Standard output is empty